1.5.0 • Published 1 year ago

@geops/eslint-config-react v1.5.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

ESLint config for React

Run the following command to install the ESLint configuration for React projects:

npm install --save-dev @geops/eslint-config-react

Using flat config (eslint >= 9)

Then, create a eslint.config.mjs file in the root of your project with the following content:

import geopsFlatConfig from "@geops/eslint-config-react/flat";

export default [...geopsFlatConfig];

Using deprecated config (eslint < 9)

Then, create a .eslintrc.json file in the root of your project with the following content:

{
  "extends": ["@geops/eslint-config-react"]
}

Updating rules

If you have to updatethe list of custom rules DO NOT FORGET to add them in ./rules.js files and in the flat/rules.mjs file.