eslint-config-react
/
1.2.0
eslint-config-react 1.2.0
Install from the command line:
Learn more about npm packages
$ npm install @pilaton/eslint-config-react@1.2.0
Install via package.json:
"@pilaton/eslint-config-react": "1.2.0"
About this version
ESLint configuration including all necessary plugins for testing React project code.
[!NOTE] Package from the
eslint-eco
monorepository.
I recommend reading the documentation to understand the whole picture.
eslint-plugin-react
eslint-plugin-react-hooks
eslint-plugin-react-refresh
eslint-plugin-jsx-a11y
eslint-plugin-tailwindcss
npm i @pilaton/eslint-config-react --save-dev
I recommend using this config over the @pilaton/eslint-config-base
base config:
npm i @pilaton/eslint-config-base @pilaton/eslint-config-react --save-dev
This configuration is created for the new ESLint Flat Config, and only supports ESM!
eslint.config.js
(eslint>=v8.23.1)
import base from '@pilaton/eslint-config-base';
import react from '@pilaton/eslint-config-react';
export default [
...base,
...react
{
// Your config
},
];