2017-05-29 19:50:03 +01:00
|
|
|
/* eslint-env node */
|
2016-10-14 11:23:51 +01:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2019-12-13 15:15:06 +00:00
|
|
|
parser: 'babel-eslint',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2018,
|
|
|
|
sourceType: 'module',
|
|
|
|
ecmaFeatures: {
|
2020-05-17 22:53:37 +01:00
|
|
|
legacyDecorators: true
|
2019-12-13 15:15:06 +00:00
|
|
|
}
|
|
|
|
},
|
2017-05-29 19:50:03 +01:00
|
|
|
plugins: [
|
2018-01-05 15:38:23 +00:00
|
|
|
'ghost'
|
|
|
|
],
|
|
|
|
extends: [
|
|
|
|
'plugin:ghost/ember'
|
2017-05-29 19:50:03 +01:00
|
|
|
],
|
2016-10-14 11:23:51 +01:00
|
|
|
rules: {
|
2020-05-20 14:55:41 +01:00
|
|
|
// octane 🏎
|
|
|
|
'ghost/ember/classic-decorator-hooks': 'error',
|
|
|
|
'ghost/ember/classic-decorator-no-classic-methods': 'error',
|
|
|
|
|
2018-01-05 15:38:23 +00:00
|
|
|
// disable linting of `this.get` until there's a reliable autofix
|
2020-01-16 17:01:12 +00:00
|
|
|
'ghost/ember/use-ember-get-and-set': 'off',
|
|
|
|
|
|
|
|
// disable linting of mixins until we migrate away
|
2020-05-06 18:06:42 +01:00
|
|
|
'ghost/ember/no-mixins': 'off',
|
2020-01-16 17:01:12 +00:00
|
|
|
'ghost/ember/no-new-mixins': 'off'
|
2016-10-14 11:23:51 +01:00
|
|
|
}
|
|
|
|
};
|