- Standard config base;
- React plugin;
- React Hooks plugin;
- Import Helpers
- JSX a11y plugin;
- Prettier;
- Install the dependencies
# With npm
npm i -D eslint @codeboxlab_/eslint-config
# With yarn
yarn add -D eslint @codeboxlab_/eslint-config
- Create a
.eslintrc.json
(or.eslintrc
) file extending the config:
{
"extends": "@codeboxlab_/eslint-config"
}
You can also use a
.eslintrc.js
instead of JSON if you prefer.