This guide focuses only on JavaScript code logic errors. No formatting checks.
It is recommended to use Prettier to manage the style of the code.
Most of the rules come from Airbnb JavaScript Style.
- ESLint 8.0.0 and above
- Node.js 12.22 and above
- Node.js 14 and above
- Node.js 16 and above
With JavaScript:
npm i -D @nnmax/eslint-config-basic
With TypeScript:
npm i -D @nnmax/eslint-config-typescript
With React and TypeScript:
npm i -D @nnmax/eslint-config-react
Adds "extends": ["@nnmax/eslint-config-basic"]
to your .eslintrc
.