An ESLint config that enforces best practices and prevents possible problems for the Node.js environment.
It is meant as an extention to @jm/eslint-config-base, but can be used without. By default it does not include any rules with regard to styling and formatting.
The idea is to use prettier for styling and so it does not include rules that are conflicting with prettier.
node
, The, default, base configuration that does not include any rules with regard to stylingformatting
, Extention to thenode
config that does include styling rules but only those that are not covered by prettier.node-relaxed
, Base configuration with some relaxed rules. Better suitable for personal or small projects.formatting-relaxed
, Extention to thebase-relaxed
configuration.
# inside your project's working tree
npm install @jm/eslint-config-node --save-dev
Example .eslintrc.json
with only the base config
{
"extends": ["@jm/node"]
}
Example .eslintrc.json
with base config extended with formatting rules
{
"extends": ["@jm/node", "@jm/eslint-config-node/formatting"]
}