@geops/eslint-config-react

1.5.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @geops/eslint-config-react

Weekly Downloads

224

Version

1.5.0

License

none

Unpacked Size

6.02 kB

Total Files

5

Last publish

Collaborators

  • lb1c
  • friedjoff
  • oterral
  • geops-admin
  • lucien.edel
  • mario.haertwig
  • gevos
  • danji90