Step by Step Configuration Eslint and Prettier in React JS 🎈
- npx eslint --init
- a. How would you like to use ESLint? To check syntax and find problems
- b. What type of modules does your project use? Javascript modules (import/export)
- c. Which framework does your project use? React
- d. Does your project use TypeScript? No
- e. Where does your code run? browser
- f. What format do you want your config file to be in? Javascript
- g. Would you like to install them now with npm? yes
- copy syntax to .eslintrc
- install devDependencies
npm install eslint-config-prettier eslint-plugin-prettier prettier --save-dev
- create file .prettierrc and copy syntax to .prettierrc