1.6.0 • Published 2 years ago
@pilaton/eslint-config-react v1.6.0
@pilaton/eslint-config-react
ESLint configuration including all necessary plugins for testing React project code.
!NOTE Package from the
eslint-ecomonorepository.
I recommend reading the documentation to understand the whole picture.
Included in the package
eslint-plugin-reacteslint-plugin-react-hookseslint-plugin-react-refresheslint-plugin-jsx-a11yeslint-plugin-tailwindcss
Install
npm i @pilaton/eslint-config-react --save-devI recommend using this config over the @pilaton/eslint-config-base base config:
npm i @pilaton/eslint-config-base @pilaton/eslint-config-react --save-devUsage
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
},
];