eslint-config-noise-node
v0.14.0
Published
A very Noise ESLint node config indeed
Downloads
10
Maintainers
Readme
ESLint Config Noise Node
An opinionated ESLint config based on the Airbnb JavaScript Style Guide for Node.js development.
Plugins
Includes these plugins.
Install
npm install --save-dev eslint eslint-config-noise eslint-config-noise-node
npx install-peerdeps --dev eslint-config-noise
npx install-peerdeps --dev eslint-config-noise-node
Configure
There are many ways to configure ESLint in the official documentation.
.eslintrc
{ "extends": ["noise", "noise-node"], "root": true }
Variants
Some rules could be unnecessary or annoying in certain scenarios. These variants can be applied on top of the base config.
Node.js v8
Some rules make no sense when using Node.js v8. Apply this variant to fix this.
.eslintrc
{
"extends": ["noise", "noise-node", "noise-node/8"],
"root": true
}
Script
Some rules may be annoying when writing scripts, eg. in your scripts/
directory. You can improve this experience by extending a the scripts preset.
.eslintrc
{
"extends": ["noise", "noise-node"],
"overrides": [
{
"files": "scripts/**",
"extends": ["noise-node/script"]
}
],
"root": true
}