@lindstrom1/eslint-react
Extendable ESLint configuration.
Installation
yarn add @lindstrom1/eslint-config-eslint-react -D
Peer dependencies
{
"@babel/eslint-parser": "^7.18.2",
"@calm/eslint-plugin-react-intl": "^1.4.1",
"@lindstrom1/prettier": "^1.0.0",
"eslint": "^8.0.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.3.0",
"eslint-config-react-app": "^7.0.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-prettier": "^4.0.0"
}
With Create React App
Exclude eslint
, @babel/eslint-parser
and eslint-config-react-app
from the peer dependencies shell above.
Usage
Extend @lindstrom1/eslint-react
in the ESLint configuration. Also make sure to setup and install @lindstrom1/prettier
and its peer dependencies.
module.exports = {
extends: ['@lindstrom1/eslint-react']
};