Moved "eslint-env node" to the root
It seem's kind of pointless setting the comment "/* eslint-env node */" at the top of only some JavaScript files when nearly all of them are Node.js releated, so I moved this option to the root level config, only leaving the 'lib' folder as "/* eslint-env commonjs */"master
parent
5a833bd982
commit
08bbd6d5b6
@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"extends": "dmajda",
|
"extends": "dmajda",
|
||||||
"env": {
|
"env": {
|
||||||
"commonjs": true
|
"node": true
|
||||||
},
|
},
|
||||||
"root": true,
|
"root": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
"linebreak-style": 0
|
"linebreak-style": 0,
|
||||||
|
"no-console": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"env": {
|
|
||||||
"node": true
|
|
||||||
},
|
|
||||||
"rules": {
|
|
||||||
"no-console": 0
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"node": false,
|
||||||
|
"commonjs": true
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue