Skip to content

Latest commit

 

History

History

eslint-config-node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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