-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheslintrc.json
191 lines (191 loc) · 7.21 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": [
"./tsconfig.json"
],
"tsconfigRootDir": "./"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-dupe-else-if": "error",
"no-extra-parens": "off",
"no-import-assign": "error",
"no-setter-return": "error",
"no-template-curly-in-string": "error",
"array-callback-return": "error",
"block-scoped-var": "error",
"consistent-return": "error",
"curly": ["error", "all"],
"default-case": "error",
"eqeqeq": "error",
"max-classes-per-file": "error",
"no-alert": "error",
"no-caller": "error",
"no-constructor-return": "error",
"no-empty-function": "off",
"no-empty-pattern": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-global-assign": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-magic-numbers": "off",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "off",
"no-script-url": "error",
"no-self-compare": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "off",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-void": "error",
"prefer-promise-reject-errors": "error",
"wrap-iife": "error",
"yoda": ["error", "never"],
"no-label-var": "error",
"no-restricted-globals": ["error", "name", "length", "event"],
"no-shadow": "error",
"no-undefined": "error",
"no-use-before-define": "off",
"array-bracket-spacing": ["error", "always", {"singleValue": false, "objectsInArrays": false, "arraysInArrays": false}],
"block-spacing": ["error", "always"],
"brace-style": "off",
"camelcase": "off",
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": ["error", {"before": false, "after": true}],
"computed-property-spacing": ["error", "never", { "enforceForClassMembers": true }],
"consistent-this": "error",
"eol-last": ["error", "always"],
"func-call-spacing": "off",
"implicit-arrow-linebreak": ["error", "beside"],
"indent": "off",
"key-spacing": ["error"],
"keyword-spacing": ["error"],
"max-depth": ["error", { "max": 4 }],
"max-len": ["error", {"code": 120}],
"max-lines": ["error", {"max": 1000}],
"max-nested-callbacks": ["error", { "max": 4 }],
"max-params": ["error", { "max": 5 }],
"new-parens": "error",
"newline-per-chained-call": "error",
"no-multiple-empty-lines": "error",
"no-negated-condition": "error",
"no-trailing-spaces": "error",
"no-underscore-dangle": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error",
"object-curly-spacing": ["error", "always"],
"operator-linebreak": ["error", "after"],
"padded-blocks": ["error", "never"],
"padding-line-between-statements": ["error",
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "import", "next": ["class","export"] }
],
"quotes": "off",
"semi": "off",
"semi-style": ["error", "last"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": "off",
"space-infix-ops": "error",
"space-in-parens": ["error", "never"],
"spaced-comment": ["error", "always"],
"switch-colon-spacing": ["error", {"after": true, "before": false}],
"unicode-bom": ["error", "never"],
"arrow-body-style": ["error", "always"],
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"constructor-super": "error",
"no-class-assign": "error",
"no-confusing-arrow": "error",
"no-duplicate-imports": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"rest-spread-spacing": "error",
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/brace-style": ["error"],
"@typescript-eslint/camelcase": ["error", { "properties": "always" }],
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/func-call-spacing": ["error"],
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/interface-name-prefix": ["error", "always"],
"@typescript-eslint/member-delimiter-style": ["error", {"multiline": {"delimiter": "semi","requireLast": true},"singleline": {"delimiter": "semi","requireLast": true}}],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-extra-parens": "error",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-untyped-public-signature": "error",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-unused-vars": ["error", {"argsIgnorePattern": "^_"}],
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/quotes": ["error", "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"@typescript-eslint/require-await": "off",
"@typescript-eslint/return-await": "error",
"@typescript-eslint/semi": ["error"],
"@typescript-eslint/space-before-function-paren": ["error","never"],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".ts"]
}
}
}
}