forked from ember-cli/ember-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
128 lines (88 loc) · 2.18 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
module.exports = {
root: true,
plugins: [
'chai-expect',
],
extends: 'eslint:recommended',
env: {
browser: false,
node: true,
},
globals: {
},
rules: {
/*** Possible Errors ***/
'comma-dangle': 0,
// JSHint "boss"
'no-cond-assign': [2, 'except-parens'],
'no-console': 0,
// JSHint "debug", disabled already in .jshintrc
'no-debugger': 0,
// JSHint "noempty", JSCS "disallowEmptyBlocks"
'no-empty': 2,
/*** Best Practices ***/
// JSHint "curly"
'curly': 2,
// JSHint "eqeqeq"
'eqeqeq': 2,
// JSHint "forin", disabled already in .jshintrc
'guard-for-in': 0,
// JSHint "noarg"
'no-caller': 2,
// JSHint "eqnull"
'no-eq-null': 2,
// JSHint "evil"
'no-eval': 2,
// JSHint "nonew", disabled already in .jshintrc
'no-new': 0,
// JSHint "expr"
'no-unused-expressions': [2, {
allowShortCircuit: true,
allowTernary: true,
}],
// JSHint "immed", disabled already in .jshintrc
'wrap-iife': 0,
'yoda': 2,
/*** Strict Mode ***/
// JSHint "strict"
'strict': [2, 'global'],
/*** Variables ***/
// JSHint "undef"
'no-undef': 2,
// JSHint "unused"
'no-unused-vars': 2,
// JSHint "latedef"
'no-use-before-define': [2, 'nofunc'],
/*** Stylistic Issues ***/
// JSHint "camelcase"
'camelcase': 2,
'eol-last': 2,
// JSHint "indent"
'indent': [2, 2, {
'SwitchCase': 1,
'VariableDeclarator': { 'var': 2, 'let': 2, 'const': 3 }
}],
'keyword-spacing': 2,
// JSHint "laxbreak"
'linebreak-style': [2, 'unix'],
// JSHint "newcap
'new-cap': [2, {
properties: false,
}],
// JSHint "plusplus", disabled already in .jshintrc
'no-plusplus': 0,
// JSHint "trailing"
'no-trailing-spaces': 2,
'no-unneeded-ternary': 2,
'space-before-blocks': 2,
'space-in-parens': 2,
'space-infix-ops': 2,
'space-unary-ops': 2,
// JSHint "quotmark"
'quotes': [2, 'single'],
/*** chai-expect ***/
'chai-expect/missing-assertion': 2,
'chai-expect/terminating-properties': 2,
'chai-expect/no-inner-compare': 2,
},
};