-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
68 lines (68 loc) · 1.52 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
module.exports = {
root: true,
parserOptions: {
sourceType: "module",
ecmaVersion: 8,
ecmaFeatures: {
modules: true
}
},
env: {
node: true,
es6: true,
mocha: true
},
parser: "babel-eslint",
rules: {
"no-extra-semi": 2,
"no-console": 2,
"no-constant-condition": 2,
"no-debugger": 2,
"no-irregular-whitespace": [ 2, {
"skipStrings": true,
"skipComments": true,
"skipRegExps": true,
"skipTemplates": true
} ],
"no-unexpected-multiline": 2,
"curly": 2,
"eqeqeq": 2,
"no-multi-spaces": [2, {
"exceptions": {
"VariableDeclarator": true,
"Property": true,
"BinaryExpression": false,
"ImportDeclaration": false
}
}],
"no-sequences": 2,
"brace-style": 2,
"block-spacing": 2,
"comma-dangle": [ 2, "never" ],
"comma-spacing": 2,
"eol-last": 2,
"indent": [ 2, 2 ],
"no-trailing-spaces": 2,
"no-whitespace-before-property": 2,
"quotes": [ 2, "single" ],
"no-multiple-empty-lines": [ 2, {
"max": 1
} ],
"linebreak-style": [ 2, "unix" ],
"no-unused-vars": [ 2, {
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}],
"no-use-before-define": [ 2, {
"functions": true,
"classes": true
}],
"no-undef": 2,
"strict": [ 2, "never" ],
"semi": [ 2, "always" ],
"arrow-parens": [ 2, "always" ],
"arrow-body-style": [ 2, "as-needed" ],
"object-curly-spacing": [ 2, "always" ]
}
};