- install
yarn add eslint --dev
- run eslint config
yarn run eslint --init
- How would you like to use ESLint? · style
- What type of modules does your project use? · commonjs
- Which framework does your project use? · react
- Does your project use TypeScript? · No / Yes
- Where does your code run? · browser
- How would you like to define a style for your project? · guide
- Which style guide do you want to follow? · standard-with-typescript
- What format do you want your config file to be in? · JSON