✔ How would you like to use ESLint? · style
✔ What type of modules does your project use? · esm
✔ 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
✔ What format do you want your config file to be in? · JavaScript
- tsconfig.json 中 jsx 设置为
"react-jsx"
,typescript
版本为^4.1
- eslint 关闭
react/jsx-uses-react
与react/react-in-jsx-scope