-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
76 lines (76 loc) · 2.2 KB
/
.eslintrc
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
{
"extends": "eslint:recommended",
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"modules": true,
"forOf": true,
"jsx": true,
"objectLiteralShorthandMethods": true,
"restParams": true,
"templateStrings": true
},
"rules": {
"arrow-spacing": 2,
"block-scoped-var": 2,
"brace-style": [2, "1tbs"],
"comma-dangle": [2, "always-multiline"],
"consistent-return": 0,
"constructor-super": 2,
"dot-location": [2, "property"],
"indent": [2, 4],
"jsx-quotes": [2, "prefer-double"],
"new-cap": 0,
"no-console": 1,
"no-debugger": 1,
"no-nested-ternary": 2,
"no-new-wrappers": 2,
"no-plusplus": 2,
"no-dupe-class-members": 2,
"no-return-assign": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow": 0,
"no-shadow-restricted-names": 2,
"no-this-before-super": 2,
"no-undef-init": 2,
"no-undefined": 2,
"no-unneeded-ternary": 2,
"no-unreachable": 1,
"no-unused-expressions": 2,
"no-unused-vars": [1, {"args": "none"}],
"no-useless-call": 2,
"no-var": 0,
"no-void": 2,
"object-curly-spacing": 0,
"object-shorthand": 0,
"one-var": [2, "never"],
"operator-assignment": [2, "always"],
"prefer-arrow-callback": 0,
"prefer-spread": 2,
"prefer-template": 0,
"prefer-const": 2,
"quote-props": [2, "as-needed"],
"quotes": [2, "double", "avoid-escape"],
"semi": 2,
"semi-spacing": 2,
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
"space-in-parens": [2, "never"],
"strict": [2, "never"],
"wrap-iife": [2, "outside"],
"yoda": 2,
},
"env": {
"node": true,
"browser": false,
},
"globals": {
"module": false,
"require": false
}
}