mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
895bffec1f
- Not sure why, but this is set to off in our base plugin - It masks issues where people have temporarily skipped tests to fix later and then forgot - Enabling this to allow us to review all those places, but we should also try to leave it on and set to error
35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
JavaScript
module.exports = {
|
|
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',
|
|
|
|
'ghost/mocha/no-skipped-tests': 'warn',
|
|
|
|
// 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'
|
|
}
|
|
};
|