An ESLint Shareable Config used in NodeJS applications based in Airbnb JavaScript Style Guide.
It requires eslint, eslint-config-airbnb-base and eslint-plugin-import
$ npm install eslint-config-nimedev-node eslint eslint-config-airbnb-base eslint-plugin-import
Set your eslint config to:
{
"extends": "nimedev-node"
}
Note: I omitted the eslint-config-
prefix since it is automatically assumed by ESLint.
Simply add a "rules"
key to your config and add your overrides there.
For example, to change the indentation
to tabs and turn off the no-console
rule:
{
"extends": "nimedev-node",
"rules": {
"indentation": "tab",
"no-console": 0
}
}