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
npm install eslint-config-airlight-react --save-dev
# or
yarn add eslint-config-airlight-react -D
- 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
- 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
{
"extends": "airlight-react/legacy"
}
import airlightReact from 'eslint-config-airlight-react';
export default [
...airlightReact,
// your rules
]
If you are using eslint + oxlint combo, see here and follow guide
oxlint -c ./node_modules/eslint-config-airlight-react/oxlintrc.json
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
We customized following rules.
Change these flat config or legacy config by your needs
MIT