2017-05-29 21:50:03 +03:00
|
|
|
/* eslint-env node */
|
2016-10-14 13:23:51 +03:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
parserOptions: {
|
2017-05-10 02:15:04 +03:00
|
|
|
ecmaVersion: 2017,
|
2016-10-14 13:23:51 +03:00
|
|
|
sourceType: 'module'
|
|
|
|
},
|
2017-05-29 21:50:03 +03:00
|
|
|
env: {
|
|
|
|
browser: true
|
|
|
|
},
|
2016-10-14 13:23:51 +03:00
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
2017-11-24 13:31:57 +03:00
|
|
|
'plugin:ember/recommended',
|
2016-10-14 13:23:51 +03:00
|
|
|
'plugin:ember-suave/recommended'
|
|
|
|
],
|
2017-05-29 21:50:03 +03:00
|
|
|
plugins: [
|
|
|
|
'sort-imports-es6-autofix'
|
|
|
|
],
|
2016-10-14 13:23:51 +03:00
|
|
|
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}
|
|
|
|
}}],
|
2017-05-29 21:50:03 +03:00
|
|
|
'ember-suave/require-access-in-comments': 'off',
|
|
|
|
'sort-imports-es6-autofix/sort-imports-es6': ['error', {
|
|
|
|
memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple']
|
2017-08-22 10:53:26 +03:00
|
|
|
}],
|
2017-11-24 13:31:57 +03:00
|
|
|
|
|
|
|
// TODO: re-enable this rule once this lands
|
|
|
|
// https://github.com/ember-cli/eslint-plugin-ember/pull/186
|
|
|
|
'ember/no-global-jquery': 'off'
|
2016-10-14 13:23:51 +03:00
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
validator: false
|
|
|
|
}
|
|
|
|
};
|