G
G
gomerIT2020-11-22 21:37:00
npm
gomerIT, 2020-11-22 21:37:00

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)\""

But what about Eslint? For example, I use the vs code editor at home, having installed the eslint plugin from the marketplace and registered my configurations in setting.json.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-11-22
@Seasle

Use standard configuration options? For example package.json, or .eslintrc.json( all options here ). Same with prettier .

A
abberati, 2020-11-23
@abberati

Usually, the configuration files of the tools are stored in the repository, and the tools themselves pick them up automatically if the files are named correctly. This rule applies to many tools, not just the ones you listed. Everything is in the documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question