44b9b0fc94
no issue - fixed all `no-shadow` linter warnings - changed `no-shadow` eslint rule from `warn` to `error` so we don't re-introduce shadowed variables in the future
33 lines
801 B
JavaScript
33 lines
801 B
JavaScript
/* eslint-env node */
|
|
module.exports = {
|
|
root: true,
|
|
parser: 'babel-eslint',
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
legacyDecorators: true
|
|
}
|
|
},
|
|
plugins: [
|
|
'ghost'
|
|
],
|
|
extends: [
|
|
'plugin:ghost/ember'
|
|
],
|
|
rules: {
|
|
'no-shadow': ['error'],
|
|
|
|
// octane 🏎
|
|
'ghost/ember/classic-decorator-hooks': 'error',
|
|
'ghost/ember/classic-decorator-no-classic-methods': 'error',
|
|
|
|
// disable linting of `this.get` until there's a reliable autofix
|
|
'ghost/ember/use-ember-get-and-set': 'off',
|
|
|
|
// disable linting of mixins until we migrate away
|
|
'ghost/ember/no-mixins': 'off',
|
|
'ghost/ember/no-new-mixins': 'off'
|
|
}
|
|
};
|