eslint-config-ristretto-react
v1.1.0
Published
A Shareable ESLint Config based on AirBnB Style
Downloads
9
Maintainers
Readme
eslint-config-ristretto-react
This package provides Ristretto's .eslintrc with React plugins as an extensible shared config.
Features
- eslint-config-ristretto
- eslint-plugin-react
- eslint-plugin-react-hooks
- eslint-plugin-jsx-a11y
Installation
Install eslint-config-ristretto-react with your package manager of choice:
npm:
npm i -D eslint eslint-config-ristretto-react
yarn:
yarn add -D eslint eslint-config-ristretto-react
pnpm:
pnpm i -D eslint eslint-config-ristretto-react
Usage
Once you have installed the package, add "ristretto-react"
to your .eslintrc extends
array:
{
"extends": ["ristretto-react"]
}
Example config
{
"extends": [
"ristretto-react",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["prettier"],
"ignorePatterns": ["node_modules"],
"rules": {
"prettier/prettier": [
"error",
{},
{
"usePrettierrc": true,
},
]
}
}