2021-05-07 12:30:41 +03:00
|
|
|
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',
|
2023-03-10 14:53:35 +03:00
|
|
|
'no-unused-vars': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
varsIgnorePattern: '^should$'
|
|
|
|
}
|
|
|
|
],
|
2021-05-07 12:30:41 +03:00
|
|
|
'no-useless-escape': 'off',
|
|
|
|
|
2021-05-26 16:57:43 +03:00
|
|
|
'ghost/mocha/no-skipped-tests': 'error',
|
2021-05-07 21:21:15 +03:00
|
|
|
|
2021-05-07 12:30:41 +03:00
|
|
|
// 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'
|
|
|
|
}
|
|
|
|
};
|