Ghost/.eslintrc.json
Naz 3eeb899e65 Enabled error for "no-shadow" eslint rule
refs 635580f291

- Changed `no-shadow` eslint rule from `warn` to `error` so we don't re-introduce shadowed variables in the future. Should be removed once this change is introduced in a base plugin
- Referenced commit is a chain of commits which fixed the warning which this rule was producing previously
2020-10-27 11:27:37 +13:00

19 lines
351 B
JSON

{
"env": {
"es6": true,
"node": true
},
"plugins": [
"ghost"
],
"extends": [
"plugin:ghost/node"
],
"rules": {
// TODO: remove this rule once it's turned into "error" in the base plugin
"no-shadow": "error",
"no-var": "error",
"one-var": [2, "never"]
}
}