mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
3eeb899e65
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
33 lines
1007 B
JSON
33 lines
1007 B
JSON
{
|
|
"env": {
|
|
"es6": true,
|
|
"node": true,
|
|
"mocha": true
|
|
},
|
|
"plugins": [
|
|
"ghost"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:ghost/test"
|
|
],
|
|
"rules": {
|
|
// TODO: remove this rule once it's turned into "error" in the base plugin
|
|
"no-shadow": "error",
|
|
|
|
// these rules were were not previously enforced in our custom rules,
|
|
// they're turned off here because they _are_ enforced in our plugin.
|
|
// TODO: remove these custom rules and fix the problems in test files where appropriate
|
|
"camelcase": "off",
|
|
"no-prototype-builtins": "off",
|
|
"no-unused-vars": "off",
|
|
"no-useless-escape": "off",
|
|
|
|
// TODO: remove these custom rules and fix problems in test files
|
|
"ghost/mocha/max-top-level-suites": "off",
|
|
"ghost/mocha/no-identical-title": "off",
|
|
"ghost/mocha/no-setup-in-describe": "off",
|
|
"ghost/mocha/no-sibling-hooks": "off"
|
|
}
|
|
}
|