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-basicWith TypeScript:
npm i -D @nnmax/eslint-config-typescriptWith React and TypeScript:
npm i -D @nnmax/eslint-config-reactAdds "extends": ["@nnmax/eslint-config-basic"] to your .eslintrc.