This configuration is the general configuration of eslint for React project, which is applicable to any basic configuration of the project, and provides a good automatic repair effect.
$ npx install-peerdeps --dev @dking/eslint-config-react
// .eslintrc.js
module.exports = {
extends: [ '@dking/react' ],
rules: {
}
}
You can use different eslint config for different types of projects to get a better experience
- Only projects requiring basic configuration can use @dking/eslint-config-base
- Projects using Typescript can use @dking/eslint-config-typescript
- Projects that use React can use @dking/eslint-config-react
- Projects that use Typescript and React can use @dking/eslint-config-typescript-react
Please open an issue here.