eslint-config-airlight-node
v5.6.3
Published
ESLint configure for Node.js focused on code quality, security and performance on top of eslint-config-airlight-base
Downloads
114
Readme
eslint-config-airlight-node
ESLint configure for Node.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-node --save-dev
# or
yarn add eslint-config-airlight-node -D
Peer dependencies
Dependencies
- eslint-config-airlight-base
- https://github.com/mysticatea/eslint-plugin-node
- https://github.com/gkouziik/eslint-plugin-security-node
Dependencies reason
- eslint-plugin-node - Node.js rules plug-in for ESLint
- eslint-plugin-security-node - Node.js security roles plug-in for ESLint
Usage
.eslintrc
{
"extends": "airlight-node/legacy"
}
eslint.config.js
import airlightNode from 'eslint-config-airlight-node';
export default [
...airlightNode,
// your rules
]
oxlint
If you are using eslint + oxlint combo, see here and follow guide
oxlint -c ./node_modules/eslint-config-airlight-node/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-node/biome.json"]
}
biome check . --write
Rules
We customized following rules.
Change these flat config or legacy config by your needs
License
MIT