eslint-config-airlight-react
v5.4.3
Published
ESLint configure for React.js focused on code quality, security and performance on top of eslint-config-airlight-base
Downloads
69
Readme
eslint-config-airlight-react
ESLint configure for React.js focused on code quality, security and performance on top of eslint-config-airlight-base
Now compatible with oxlint
and biome
configuration
Installation
npm install eslint-config-airlight-react --save-dev
# or
yarn add eslint-config-airlight-react -D
Peer dependencies
Dependencies
- eslint-config-airlight-base
- https://github.com/yannickcr/eslint-plugin-react
- https://www.npmjs.com/package/eslint-plugin-react-hooks
- https://github.com/jsx-eslint/eslint-plugin-jsx-a11y
- https://github.com/jest-community/eslint-plugin-jest
Dependencies reason
- eslint-plugin-react - React specific linting rules for ESLint
- eslint-plugin-react-hooks - React rules for React Hooks
- eslint-plugin-jsx-a11y - Static AST checker for accessibility rules on JSX elements
- eslint-plugin-jest - Jest testing rules for ESLint
Usage
.eslintrc
{
"extends": "airlight-react/legacy"
}
eslint.config.js
import airlightReact from 'eslint-config-airlight-react';
export default [
...airlightReact,
// your rules
]
oxlint
If you are using eslint + oxlint combo, see here and follow guide
oxlint -c ./node_modules/eslint-config-airlight-react/oxlintrc.json
biome
If you are using eslint + biome combo, see here and follow guide
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"extends": ["eslint-config-airlight-react/biome.json"]
}
biome check . --write
Rules
We customized following rules.
Change these flat config or legacy config by your needs
License
MIT