Ghost/ghost/admin/.eslintrc.js

31 lines
768 B
JavaScript
Raw Normal View History

/* eslint-env node */
module.exports = {
root: true,
2019-12-13 18:15:06 +03:00
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true
2019-12-13 18:15:06 +03:00
}
},
plugins: [
'ghost'
],
extends: [
'plugin:ghost/ember'
],
rules: {
// 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'
}
};