by eslint-community · eslint-plugin-n
Flags unsupported Node.js APIs, missing or unpublished dependencies and deprecated built-ins.
pnpm add -D eslint eslint-plugin-n// eslint.config.js
import n from "eslint-plugin-n";
export default [
n.configs["flat/recommended"],
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| node/no-exports-assign | error | In ESLint, Oxlint | 16.2M | +27.4% |
| node/no-deprecated-api | error | In ESLint, Biome | 14.6M | +18.1% |
| node/process-exit-as-throw | error | In ESLint | 14.6M | +18.1% |
| node/no-extraneous-import | error | In ESLint | 10.3M | +17.1% |
| node/no-process-exit | error | In ESLint, Biome | 9.9M | +18.3% |
| node/hashbang | error | In ESLint | 9.9M | +18.3% |
| node/no-extraneous-require | error | In ESLint | 9.9M | +18.3% |
| node/no-missing-import | error | In ESLint | 9.9M | +18.3% |
| node/no-missing-require | error | In ESLint | 9.9M | +18.3% |
| node/no-unpublished-import | error | In ESLint | 9.9M | +18.3% |
| node/no-unpublished-require | error | In ESLint | 9.9M | +18.3% |