-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
57 lines (55 loc) · 1.6 KB
/
.eslintrc.json
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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"quotes": [2, "single"],
"eol-last": [0],
"no-mixed-requires": [0],
"no-underscore-dangle": [0],
"block-spacing": [2,"never"],
"brace-style": [2,"1tbs",{"allowSingleLine":true}],
"comma-spacing": [2, { "before": false, "after": true }],
"eqeqeq":[2,"always"],
"block-scoped-var": 2,
"curly": [2],
"no-else-return": [1],
"no-empty-function": [2],
"no-multi-spaces": [2],
"no-redeclare": [2],
"no-extra-semi": [2],
"semi":[2,"always"],
"semi-spacing": [2, { "before": false, "after": true }],
"no-unreachable": [2],
"no-unexpected-multiline": [2],
"func-call-spacing": [2, "never"],
"space-unary-ops": [2, {"words": true,"nonwords": false}],
"space-in-parens": [2, "never"],
"require-jsdoc": [2, {"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true}}],
"valid-jsdoc": [2, {"requireReturn": false}],
"one-var": [2, "never"],
"padded-blocks": [2, {
"classes": "always",
"switches":"always",
"blocks":"never"}],
"indent": ["error", 4, {
"SwitchCase": 1,
"outerIIFEBody": 1,
"MemberExpression": 1,
"FunctionExpression": {"body": 1,"parameters": "first"},
"CallExpression": {"arguments": "first"},
"ArrayExpression": 1,
"ObjectExpression": 1}]
}
}