-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
95 lines (95 loc) · 3.32 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"block-spacing": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
"camelcase": "error",
"comma-dangle": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"array-callback-return": "error",
"arrow-body-style": ["error", "as-needed"],
"no-case-declarations": "error",
"no-confusing-arrow": "error",
"no-duplicate-imports": "error",
"no-useless-constructor": "error",
"prefer-rest-params": "error",
"template-curly-spacing": "error",
"no-var": "error",
"eqeqeq": ["error", "smart"],
"curly": ["error", "all"],
"prefer-arrow-callback": "error",
"generator-star-spacing": ["error", "before"],
"prefer-template": "error",
"prefer-const": "error",
"func-call-spacing": ["error", "never"],
"func-style": ["error", "expression"],
"id-length": "error",
"implicit-arrow-linebreak": ["error", "beside"],
"import/extensions": ["error", "never"],
"import/first": "error",
"import/no-mutable-exports": "error",
"indent": ["error", 2],
"key-spacing": "error",
"keyword-spacing": ["error", { "before": true, "after": true}],
"max-len": "error",
"new-cap": "error",
"no-array-constructor": "error",
"no-cond-assign": "error",
"no-console": "error",
"no-constant-condition": "error",
"no-control-regex": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-empty-character-class": "error",
"no-extra-boolean-cast": "error",
"no-mixed-operators": ["error", {"allowSamePrecedence": true}],
"no-multi-assign": "error",
"no-multiple-empty-lines": "error",
"no-nested-ternary": "error",
"no-new-object": "error",
"no-prototype-builtins": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"no-unneeded-ternary": "error",
"no-unused-vars": "error",
"nonblock-statement-body-position": ["error", "beside"],
"object-curly-newline": ["error", { "consistent": true }],
"object-curly-spacing": ["error", "never"],
"object-property-newline": "error",
"one-var": ["error", "always"],
"padded-blocks": ["error", "never"],
"no-new-func": "error",
"no-loop-func": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-dupe-class-members": "error",
"no-eval": "error",
"no-const-assign": "error",
"no-else-return": "error",
"dot-notation": "error",
"quotes": ["error", "single", { "allowTemplateLiterals": true, "avoidEscape": true}],
"wrap-iife": ["error", "outside"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": "error",
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error", { "int32Hint": false }],
"spaced-comment": ["error", "always"]
}
}