1.0.0 • Published 6 years ago
@moxy/eslint-config-node v1.0.0
eslint-config-node
MOXY eslint configuration to be used in Javascript projects targeted for NodeJS.
Installation
$ npm install --save-dev eslint @moxy/eslint-config-nodeUsage
Create a .eslintrc.json file in the project root and extend @moxy/eslint-config-browser.
You can change the ECMAScript version for the base configuration to use:
es6- The configuration to be used in ECMAScript 6 based projects (aka 2015)es7- The configuration to be used in ECMAScript 7 based projects (aka 2016)es8- The configuration to be used in ECMAScript 8 based projects (aka 2017)es9- The configuration to be used in ECMAScript 9 based projects (aka 2018)es10- The configuration to be used in ECMAScript 10 based projects (aka 2019)
The default configuration is es10.
Examples
{
"root": true,
"extends": [
"@moxy/eslint-config-node"
]
}In case you want to specify an ECMAScript version:
{
"root": true,
"extends": [
"@moxy/eslint-config-node/es7"
]
}Note that by setting root to true, we ensure that no ancestor configuration is used which also improves ESLint performance because no more file lookups need to be done.
1.0.0
6 years ago