41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
/* eslint-env node */
|
|
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
ecmaVersion: 2017,
|
|
sourceType: 'module'
|
|
},
|
|
env: {
|
|
browser: true
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:ember/recommended',
|
|
'plugin:ember-suave/recommended'
|
|
],
|
|
plugins: [
|
|
'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']
|
|
}],
|
|
|
|
// TODO: re-enable this rule once this lands
|
|
// https://github.com/ember-cli/eslint-plugin-ember/pull/186
|
|
'ember/no-global-jquery': 'off'
|
|
},
|
|
globals: {
|
|
validator: false
|
|
}
|
|
};
|