mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 13:22:39 +03:00
983110d931
no issue - add eslint-plugin-ember, configure no-old-shims rule - run `eslint --fix` on `app`, `lib`, `mirage`, and `tests` to move imports to the new module imports - further cleanup of Ember globals usage - remove event-dispatcher initializer now that `canDispatchToEventManager` is deprecated
38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
/* eslint-env node */
|
|
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
ecmaVersion: 2017,
|
|
sourceType: 'module'
|
|
},
|
|
env: {
|
|
browser: true
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:ember-suave/recommended'
|
|
],
|
|
plugins: [
|
|
'ember',
|
|
'sort-imports-es6-autofix'
|
|
],
|
|
rules: {
|
|
indent: ['error', 4],
|
|
'space-before-function-paren': ['error', {anonymous: 'ignore', named: 'never'}],
|
|
'object-curly-spacing': ['error', 'never'],
|
|
'array-bracket-spacing': ['error', 'never'],
|
|
'key-spacing': ['error', {mode: 'minimum'}],
|
|
'keyword-spacing': ['error', {overrides: {
|
|
'catch': {'after': true}
|
|
}}],
|
|
'ember-suave/require-access-in-comments': 'off',
|
|
'sort-imports-es6-autofix/sort-imports-es6': ['error', {
|
|
memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple']
|
|
}],
|
|
'ember/no-old-shims': ['error']
|
|
},
|
|
globals: {
|
|
validator: false
|
|
}
|
|
};
|