forked from fenichelar/ember-simple-auth-token
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
78 lines (78 loc) · 1.99 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
plugins: [
'ember',
'no-unsafe-regex'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
browser: true
},
rules: {
'arrow-spacing': ['error', {'before': true, 'after': true}],
'callback-return': ['error', ['callback', 'cb', 'next', 'done', 'proceed']],
'camelcase': ['error', {'properties': 'always'}],
'comma-dangle': ['error', 'never'],
'comma-style': ['error', 'last'],
'curly': ['error'],
'eol-last': ['error'],
'eqeqeq': ['error', 'always'],
'handle-callback-err': ['error'],
'indent': ['error', 2, {'SwitchCase': 1}],
'linebreak-style': ['error', 'unix'],
'no-const-assign': ['error'],
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'no-return-assign': ['error', 'always'],
'no-sequences': ['error'],
'no-trailing-spaces': ['error'],
'no-undef': ['error'],
'no-unexpected-multiline': ['error'],
'no-unsafe-regex/no-unsafe-regex': ['error'],
'no-unused-vars': ['error'],
'no-var': ['error'],
'one-var': ['error', 'never'],
'prefer-const': ['error'],
'rest-spread-spacing': ['error', 'never'],
'semi': ['error', 'always']
},
overrides: [
{
files: [
'eslintrc.js',
'blueprints/*/index.js',
'config/**/*.js',
'ember-cli-build.js',
'index.js',
'server/**/*.js',
'testem.js',
'tests/dummy/config/**/*.js'
],
excludedFiles: [
'addon-test-support/**',
'addon/**',
'app/**',
'tests/dummy/app/**'
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
},
env: {
browser: false,
node: true
},
plugins: ['node'],
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
'camelcase': ['off'],
'no-var': ['off']
})
}
]
};