Skip to content

Commit 85eb6fd

Browse files
fix: lint rules; update Yarn; update test script
still need to update some tests
1 parent 672c755 commit 85eb6fd

File tree

2,008 files changed

+44213
-31698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,008 files changed

+44213
-31698
lines changed

.eslintrc.json

Lines changed: 94 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,79 @@
88
],
99
"parser": "@typescript-eslint/parser",
1010
"parserOptions": {
11-
"project": [ "tsconfig.json", "tsconfig.utils.json" ],
11+
"project": [
12+
"tsconfig.json",
13+
"tsconfig.utils.json"
14+
],
1215
"sourceType": "module"
1316
},
14-
"ignorePatterns": [ "docusaurus/**/*.js", "typings/**/*", "out/**/*" ],
17+
"ignorePatterns": [
18+
"docusaurus/**/*.js",
19+
"typings/**/*",
20+
"out/**/*"
21+
],
1522
"plugins": [
1623
"@typescript-eslint",
1724
"unused-imports"
1825
],
1926
"rules": {
20-
"import/no-unresolved": [ 0 ],
21-
"import/order": ["error", {
22-
"alphabetize": {
23-
"order": "desc"
27+
"import/no-unresolved": [
28+
0
29+
],
30+
"import/order": [
31+
"error",
32+
{
33+
"alphabetize": {
34+
"order": "desc"
35+
}
2436
}
25-
}],
37+
],
2638
"unused-imports/no-unused-imports": "error",
2739
"@typescript-eslint/await-thenable": "error",
28-
"@typescript-eslint/naming-convention": ["error",
40+
"@typescript-eslint/naming-convention": [
41+
"error",
2942
{
3043
"selector": "default",
31-
"format": ["camelCase"],
44+
"format": [
45+
"camelCase"
46+
],
3247
"leadingUnderscore": "allow",
3348
"trailingUnderscore": "allow"
3449
},
3550
{
3651
"selector": "function",
37-
"format": ["camelCase", "PascalCase"]
52+
"format": [
53+
"camelCase",
54+
"PascalCase"
55+
]
3856
},
3957
{
4058
"selector": "variable",
41-
"format": ["camelCase", "UPPER_CASE"],
59+
"format": [
60+
"camelCase",
61+
"UPPER_CASE"
62+
],
4263
"leadingUnderscore": "allow",
4364
"trailingUnderscore": "allow"
4465
},
4566
{
4667
"selector": "typeLike",
47-
"format": ["PascalCase"]
68+
"format": [
69+
"PascalCase"
70+
]
4871
},
4972
{
5073
"selector": "enumMember",
51-
"format": ["PascalCase"]
74+
"format": [
75+
"PascalCase"
76+
]
77+
},
78+
{
79+
"selector": "import",
80+
"format": [
81+
"camelCase",
82+
"PascalCase"
83+
]
5284
}
5385
],
5486
"@typescript-eslint/consistent-type-assertions": "error",
@@ -78,7 +110,10 @@
78110
"avoidEscape": true
79111
}
80112
],
81-
"@typescript-eslint/semi": [ "error", "never" ],
113+
"@typescript-eslint/semi": [
114+
"error",
115+
"never"
116+
],
82117
"@typescript-eslint/triple-slash-reference": [
83118
"error",
84119
{
@@ -90,13 +125,28 @@
90125
"@typescript-eslint/type-annotation-spacing": "error",
91126
"@typescript-eslint/unified-signatures": "error",
92127
"arrow-spacing": "error",
93-
"brace-style": [ "error", "1tbs" ],
94-
"block-spacing": [ "error", "always" ],
128+
"brace-style": [
129+
"error",
130+
"1tbs"
131+
],
132+
"block-spacing": [
133+
"error",
134+
"always"
135+
],
95136
"comma-dangle": "error",
96-
"curly": [ "error", "multi-line" ],
137+
"curly": [
138+
"error",
139+
"multi-line"
140+
],
97141
"eol-last": "error",
98-
"eqeqeq": [ "error", "smart" ],
99-
"func-call-spacing": [ "error", "never" ],
142+
"eqeqeq": [
143+
"error",
144+
"smart"
145+
],
146+
"func-call-spacing": [
147+
"error",
148+
"never"
149+
],
100150
"id-blacklist": [
101151
"error",
102152
"any",
@@ -123,7 +173,12 @@
123173
"new-parens": "error",
124174
"no-caller": "error",
125175
"no-cond-assign": "error",
126-
"no-constant-condition": [ "error", { "checkLoops": false } ],
176+
"no-constant-condition": [
177+
"error",
178+
{
179+
"checkLoops": false
180+
}
181+
],
127182
"no-control-regex": "error",
128183
"no-duplicate-case": "error",
129184
"no-duplicate-imports": "error",
@@ -133,7 +188,10 @@
133188
"no-ex-assign": "error",
134189
"no-extra-boolean-cast": "error",
135190
"no-fallthrough": "error",
136-
"no-inner-declarations": [ "error", "functions" ],
191+
"no-inner-declarations": [
192+
"error",
193+
"functions"
194+
],
137195
"no-invalid-regexp": "error",
138196
"no-irregular-whitespace": "error",
139197
"no-multi-spaces": "error",
@@ -152,16 +210,27 @@
152210
"no-unexpected-multiline": "error",
153211
"no-unused-labels": "error",
154212
"no-var": "error",
155-
"object-curly-spacing": [ "error", "always" ],
156-
"one-var": [ "error", "never" ],
213+
"object-curly-spacing": [
214+
"error",
215+
"always"
216+
],
217+
"one-var": [
218+
"error",
219+
"never"
220+
],
157221
"radix": "off",
158222
"space-before-function-paren": "error",
159-
"space-in-parens": [ "error", "never" ],
223+
"space-in-parens": [
224+
"error",
225+
"never"
226+
],
160227
"spaced-comment": [
161228
"error",
162229
"always",
163230
{
164-
"markers": [ "/" ]
231+
"markers": [
232+
"/"
233+
]
165234
}
166235
],
167236
"use-isnan": "error",

0 commit comments

Comments
 (0)