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
npm install eslint-config-airlight-node --save-dev
# or
yarn add eslint-config-airlight-node -D
- eslint-config-airlight-base
- https://github.com/mysticatea/eslint-plugin-node
- https://github.com/gkouziik/eslint-plugin-security-node
- eslint-plugin-node - Node.js rules plug-in for ESLint
- eslint-plugin-security-node - Node.js security roles plug-in for ESLint
{
"extends": "airlight-node/legacy"
}
import airlightNode from 'eslint-config-airlight-node';
export default [
...airlightNode,
// your rules
]
If you are using eslint + oxlint combo, see here and follow guide
oxlint -c ./node_modules/eslint-config-airlight-node/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-node/biome.json"]
}
biome check . --write
We customized following rules.
Change these flat config or legacy config by your needs
MIT