Skip to content

Latest commit

 

History

History

eslint-config-react

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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