-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
128 lines (128 loc) · 4.01 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"env": {
"browser": false,
"commonjs": true,
"es6": true,
"jest": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"no-console": "error",
"no-extra-parens": "error",
"no-template-curly-in-string": "error",
"consistent-return": "error",
"curly": "error",
"no-else-return": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-param-reassign": "error",
"no-return-assign": "error",
"no-sequences": "error",
"require-await": "error",
"no-shadow": "error",
"no-use-before-define": "error",
"array-bracket-spacing": ["error", "never"],
"block-spacing": "error",
"brace-style": "error",
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"eol-last": "error",
"key-spacing": "error",
"max-len": "error",
"no-await-in-loop": "error",
"no-import-assign": "error",
"array-callback-return": "error",
"block-scoped-var": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
"eqeqeq": "error",
"no-caller": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-new-wrappers": "error",
"no-octal": "error",
"no-proto": "error",
"no-return-await": "error",
"no-self-compare": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-void": "error",
"prefer-promise-reject-errors": "error",
"vars-on-top": "error",
"yoda": "error",
"no-process-env": "error",
"no-process-exit": "error",
"no-sync": "error",
"array-bracket-newline": "error",
"array-element-newline": ["error", "consistent"],
"capitalized-comments": "error",
"computed-property-spacing": "error",
"func-call-spacing": "error",
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": ["error", "multiline-arguments"],
"implicit-arrow-linebreak": "error",
"keyword-spacing": "error",
"multiline-ternary": ["error", "always-multiline"],
"new-parens": "error",
"newline-per-chained-call": "error",
"no-lonely-if": "error",
"no-multi-assign": "error",
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new-object": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"object-curly-newline": "error",
"object-curly-spacing": ["error", "always", { "objectsInObjects": false }],
"padded-blocks": ["error", "never"],
"prefer-object-spread": "error",
"quote-props": ["error", "as-needed"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error",
"spaced-comment": "error",
"template-tag-spacing": "error",
"arrow-body-style": "error",
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"no-duplicate-imports": "error",
"no-useless-computed-key": "error",
"no-useless-rename": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"rest-spread-spacing": "error",
"template-curly-spacing": "error"
}
}