-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
74 lines (74 loc) · 2.43 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"extends": "eslint:recommended",
"rules": {
"array-bracket-spacing": 2,
"arrow-spacing": [2, { "before": true, "after": true }],
"block-spacing": 2,
"brace-style": [2, "1tbs"],
"camelcase": 2,
"comma-dangle": [2, "never"],
"comma-spacing": 2,
"comma-style": [2, "last"],
"computed-property-spacing": 2,
"constructor-super": 2,
"curly": 2,
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": 2,
"func-call-spacing": 2,
"indent": [2, 4, { "SwitchCase": 1 }],
"jsx-quotes": 2,
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [2, { "before": true, "after": true }],
"linebreak-style": [2, "unix"],
"max-len": [1, 120, 4],
"max-lines": [1, 500],
"max-statements": [1, 50],
"new-parens": 2,
"no-alert": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-case-declarations": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-extend-native": 2,
"no-invalid-this": 2,
"no-nested-ternary": 2,
"no-tabs": 2,
"no-trailing-spaces": 2,
"no-unused-vars": [2, { "args": "none" }],
"no-useless-constructor": 2,
"no-useless-rename": 2,
"no-var": 2,
"no-whitespace-before-property": 2,
"one-var": [2, { "var": "never", "let": "never", "const": "never" }],
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"quote-props": [2, "as-needed"],
"semi": [2, "always"],
"space-before-blocks": [2, "always"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"valid-jsdoc": [2, { "requireReturn": false, "requireReturnDescription": false, "requireParamDescription": false }],
"yoda": 2
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"globals": {
"__dirname": false,
"clearInterval": false,
"clearTimeout": false,
"console": false,
"module": false,
"process": false,
"Promise": false,
"require": false,
"setInterval": false,
"setTimeout": false
}
}