Answer the question
In order to leave comments, you need to log in
Eslint and Prettier in ReactJS how to pass config to another programmer?
Hello, I'm interested in the question of how, when installing my project, so that another programmer can use my Eslint configurations. With Prettier, I solved this problem like this: in package.json scripts: I wrote this command
"prettier": "prettier --single-quote --use-tabs --trailing-comma es5 --write \"src/**/*.(js|jsx)\""
Answer the question
In order to leave comments, you need to log in
Use standard configuration options? For example package.json
, or .eslintrc.json
( all options here ). Same with prettier .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question