-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
41 lines (40 loc) · 1.06 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
module.exports = {
'extends': 'airbnb',
'env': {
'mocha': true
},
'globals': {
'define': true,
'document': true,
'Event': true,
'Image': true,
'localStorage': true,
'requestAnimationFrame': true,
'Audio': true,
'Element': true,
'window': true
},
'rules': {
// Override any settings from the 'parent' configuration
'import/no-unresolved': 0,
'indent': [ 2, 4, { 'SwitchCase': 1, 'VariableDeclarator': 1 } ],
'max-len': [ 2, 130, 2, {
'ignoreUrls': true,
'ignoreComments': false
} ],
'no-console': 0,
'no-restricted-syntax': 1,
'no-underscore-dangle': 0,
'spaced-comment': [ 2, 'always', { 'exceptions': [ '*' ] } ],
'strict': 0,
'no-plusplus': [
'error', { 'allowForLoopAfterthoughts': true }
],
'prefer-destructuring': [
'error', { 'array': false }
],
'import/extensions': [
'.js'
]
}
};