mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
5d97c1710f
no issue - bumps eslint and eslint-plugin-ember versions - octane rules are enabled by default - disabled them in our eslintrc.json so we can switch to warn/error whilst migrating to octane - fixed a couple of linting errors from new/updated rules
40 lines
1.2 KiB
JavaScript
40 lines
1.2 KiB
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'],
|
|
|
|
// TODO: migrate away from accessing controller in routes
|
|
'ghost/ember/no-controller-access-in-routes': 'off',
|
|
|
|
// TODO: enable once we're fully on octane 🏎
|
|
'ghost/ember/no-assignment-of-untracked-properties-used-in-tracking-contexts': 'off',
|
|
'ghost/ember/no-actions-hash': 'off',
|
|
'ghost/ember/no-classic-classes': 'off',
|
|
'ghost/ember/no-classic-components': 'off',
|
|
'ghost/ember/require-tagless-components': 'off',
|
|
'ghost/ember/no-component-lifecycle-hooks': 'off',
|
|
|
|
// 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'
|
|
}
|
|
};
|