@utoo/lint 0.0.8 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +8 -8
- package/bin/eslint.js +0 -0
- package/bin/migrate.js +4 -11
- package/index.cjs +79 -0
- package/index.js +79 -0
- package/package.json +7 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 utoo-lint contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ High performance linter for JavaScript and TypeScript written by Zig.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
|
|
10
|
+
pnpm add -D @utoo/lint
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## CLI
|
|
@@ -15,7 +15,7 @@ npm install -D @utoo/lint
|
|
|
15
15
|
Run the linter with:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
|
|
18
|
+
pnpm exec utoo-lint src
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
If no target is provided, `utoo-lint` scans the current directory. It skips
|
|
@@ -24,19 +24,19 @@ If no target is provided, `utoo-lint` scans the current directory. It skips
|
|
|
24
24
|
Use a config file:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
|
|
27
|
+
pnpm exec utoo-lint --config=utoo.json src
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Run a focused rule set:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
33
|
+
pnpm exec utoo-lint --rules=no-debugger,no-console src
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Use machine-readable output:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
|
|
39
|
+
pnpm exec utoo-lint --format=json src
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Configuration
|
|
@@ -66,14 +66,14 @@ cp node_modules/@utoo/lint/configs/frontend.json utoo.json
|
|
|
66
66
|
Convert an existing ESLint config into the native utoo format:
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
|
-
|
|
69
|
+
pnpm exec utoo-lint migrate eslint --from eslint.config.js --output utoo.json
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
The package also provides compatibility bins for common replacement flows:
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
pnpm exec eslint --config utoo.json src
|
|
76
|
+
pnpm exec fishlint eslint --disable-setup --config utoo.json --glob src
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
## JavaScript API
|
package/bin/eslint.js
CHANGED
|
File without changes
|
package/bin/migrate.js
CHANGED
|
@@ -183,7 +183,6 @@ function migrateEslintConfig(options) {
|
|
|
183
183
|
const supportedRules = [];
|
|
184
184
|
const unsupportedRules = [];
|
|
185
185
|
const ignoredRules = [];
|
|
186
|
-
const optionDroppedRules = [];
|
|
187
186
|
|
|
188
187
|
for (const entry of entries) {
|
|
189
188
|
addPatterns(files, entry.files);
|
|
@@ -200,11 +199,8 @@ function migrateEslintConfig(options) {
|
|
|
200
199
|
unsupportedRules.push(ruleId);
|
|
201
200
|
continue;
|
|
202
201
|
}
|
|
203
|
-
rules[ruleId] =
|
|
202
|
+
rules[ruleId] = migratableRuleConfig(ruleConfig);
|
|
204
203
|
supportedRules.push(ruleId);
|
|
205
|
-
if (Array.isArray(ruleConfig) && ruleConfig.length > 1) {
|
|
206
|
-
optionDroppedRules.push(ruleId);
|
|
207
|
-
}
|
|
208
204
|
}
|
|
209
205
|
}
|
|
210
206
|
|
|
@@ -227,7 +223,7 @@ function migrateEslintConfig(options) {
|
|
|
227
223
|
supportedRules: uniqueSorted(supportedRules),
|
|
228
224
|
unsupportedRules: uniqueSorted(unsupportedRules),
|
|
229
225
|
ignoredRules: uniqueByRuleId(ignoredRules),
|
|
230
|
-
optionDroppedRules:
|
|
226
|
+
optionDroppedRules: []
|
|
231
227
|
}
|
|
232
228
|
};
|
|
233
229
|
}
|
|
@@ -295,8 +291,8 @@ function addPatterns(target, value) {
|
|
|
295
291
|
}
|
|
296
292
|
}
|
|
297
293
|
|
|
298
|
-
function
|
|
299
|
-
return Array.isArray(ruleConfig) ? ruleConfig
|
|
294
|
+
function migratableRuleConfig(ruleConfig) {
|
|
295
|
+
return Array.isArray(ruleConfig) ? [...ruleConfig] : ruleConfig;
|
|
300
296
|
}
|
|
301
297
|
|
|
302
298
|
function sortObjectByKey(object) {
|
|
@@ -326,9 +322,6 @@ function writeReport(report, options, stream) {
|
|
|
326
322
|
stream.write(`utoo-lint migrate eslint: wrote ${report.output}\n`);
|
|
327
323
|
}
|
|
328
324
|
stream.write(`utoo-lint migrate eslint: migrated ${report.supportedRules.length} supported rule(s)\n`);
|
|
329
|
-
if (report.optionDroppedRules.length > 0) {
|
|
330
|
-
stream.write(`utoo-lint migrate eslint: dropped options for ${report.optionDroppedRules.length} rule(s): ${report.optionDroppedRules.join(", ")}\n`);
|
|
331
|
-
}
|
|
332
325
|
if (report.ignoredRules.length > 0) {
|
|
333
326
|
stream.write(`utoo-lint migrate eslint: ignored ${report.ignoredRules.length} rule(s): ${report.ignoredRules.map((rule) => rule.ruleId).join(", ")}\n`);
|
|
334
327
|
}
|
package/index.cjs
CHANGED
|
@@ -83,9 +83,13 @@ process.stdout.write(json);
|
|
|
83
83
|
const BUILTIN_RULE_IDS = [
|
|
84
84
|
"accessor-pairs",
|
|
85
85
|
"array-callback-return",
|
|
86
|
+
"arrow-body-style",
|
|
86
87
|
"block-scoped-var",
|
|
88
|
+
"camelcase",
|
|
87
89
|
"capitalized-comments",
|
|
90
|
+
"complexity",
|
|
88
91
|
"consistent-return",
|
|
92
|
+
"consistent-this",
|
|
89
93
|
"constructor-super",
|
|
90
94
|
"curly",
|
|
91
95
|
"default-case",
|
|
@@ -97,11 +101,23 @@ const BUILTIN_RULE_IDS = [
|
|
|
97
101
|
"for-direction",
|
|
98
102
|
"func-name-matching",
|
|
99
103
|
"func-names",
|
|
104
|
+
"func-style",
|
|
100
105
|
"getter-return",
|
|
101
106
|
"grouped-accessor-pairs",
|
|
102
107
|
"guard-for-in",
|
|
108
|
+
"id-denylist",
|
|
109
|
+
"id-length",
|
|
110
|
+
"id-match",
|
|
111
|
+
"init-declarations",
|
|
103
112
|
"linebreak-style",
|
|
104
113
|
"logical-assignment-operators",
|
|
114
|
+
"max-classes-per-file",
|
|
115
|
+
"max-depth",
|
|
116
|
+
"max-lines",
|
|
117
|
+
"max-lines-per-function",
|
|
118
|
+
"max-nested-callbacks",
|
|
119
|
+
"max-params",
|
|
120
|
+
"max-statements",
|
|
105
121
|
"new-cap",
|
|
106
122
|
"new-parens",
|
|
107
123
|
"no-alert",
|
|
@@ -119,6 +135,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
119
135
|
"no-cond-assign",
|
|
120
136
|
"no-console",
|
|
121
137
|
"no-const-assign",
|
|
138
|
+
"no-constant-binary-expression",
|
|
122
139
|
"no-constant-condition",
|
|
123
140
|
"no-constructor-return",
|
|
124
141
|
"no-continue",
|
|
@@ -155,6 +172,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
155
172
|
"no-global-is-finite",
|
|
156
173
|
"no-global-is-nan",
|
|
157
174
|
"no-implicit-coercion",
|
|
175
|
+
"no-implicit-globals",
|
|
158
176
|
"no-implied-eval",
|
|
159
177
|
"no-import-assign",
|
|
160
178
|
"no-inline-comments",
|
|
@@ -196,6 +214,13 @@ const BUILTIN_RULE_IDS = [
|
|
|
196
214
|
"no-promise-executor-return",
|
|
197
215
|
"no-proto",
|
|
198
216
|
"no-prototype-builtins",
|
|
217
|
+
"no-redeclare",
|
|
218
|
+
"no-restricted-exports",
|
|
219
|
+
"no-restricted-globals",
|
|
220
|
+
"no-restricted-imports",
|
|
221
|
+
"no-restricted-modules",
|
|
222
|
+
"no-restricted-properties",
|
|
223
|
+
"no-restricted-syntax",
|
|
199
224
|
"no-regex-spaces",
|
|
200
225
|
"no-return-assign",
|
|
201
226
|
"no-return-await",
|
|
@@ -204,6 +229,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
204
229
|
"no-self-compare",
|
|
205
230
|
"no-sequences",
|
|
206
231
|
"no-setter-return",
|
|
232
|
+
"no-shadow",
|
|
207
233
|
"no-shadow-restricted-names",
|
|
208
234
|
"no-sparse-arrays",
|
|
209
235
|
"no-tabs",
|
|
@@ -214,15 +240,21 @@ const BUILTIN_RULE_IDS = [
|
|
|
214
240
|
"no-trailing-spaces",
|
|
215
241
|
"no-undef",
|
|
216
242
|
"no-undef-init",
|
|
243
|
+
"no-unassigned-vars",
|
|
217
244
|
"no-underscore-dangle",
|
|
218
245
|
"no-undefined",
|
|
219
246
|
"no-unneeded-ternary",
|
|
220
247
|
"no-unreachable",
|
|
248
|
+
"no-unreachable-loop",
|
|
221
249
|
"no-unsafe-finally",
|
|
222
250
|
"no-unsafe-negation",
|
|
251
|
+
"no-unsafe-optional-chaining",
|
|
223
252
|
"no-unused-expressions",
|
|
224
253
|
"no-unused-labels",
|
|
254
|
+
"no-unused-private-class-members",
|
|
225
255
|
"no-unused-vars",
|
|
256
|
+
"no-use-before-define",
|
|
257
|
+
"no-useless-backreference",
|
|
226
258
|
"no-useless-call",
|
|
227
259
|
"no-useless-catch",
|
|
228
260
|
"no-useless-computed-key",
|
|
@@ -238,13 +270,16 @@ const BUILTIN_RULE_IDS = [
|
|
|
238
270
|
"object-shorthand",
|
|
239
271
|
"one-var",
|
|
240
272
|
"operator-assignment",
|
|
273
|
+
"prefer-arrow-callback",
|
|
241
274
|
"prefer-const",
|
|
242
275
|
"prefer-destructuring",
|
|
243
276
|
"prefer-exponentiation-operator",
|
|
277
|
+
"prefer-named-capture-group",
|
|
244
278
|
"prefer-numeric-literals",
|
|
245
279
|
"prefer-object-has-own",
|
|
246
280
|
"prefer-object-spread",
|
|
247
281
|
"prefer-promise-reject-errors",
|
|
282
|
+
"preserve-caught-error",
|
|
248
283
|
"prefer-regex-literals",
|
|
249
284
|
"prefer-rest-params",
|
|
250
285
|
"prefer-spread",
|
|
@@ -252,8 +287,13 @@ const BUILTIN_RULE_IDS = [
|
|
|
252
287
|
"radix",
|
|
253
288
|
"require-await",
|
|
254
289
|
"require-atomic-updates",
|
|
290
|
+
"require-unicode-regexp",
|
|
255
291
|
"require-yield",
|
|
292
|
+
"sort-imports",
|
|
293
|
+
"sort-keys",
|
|
294
|
+
"sort-vars",
|
|
256
295
|
"spaced-comment",
|
|
296
|
+
"strict",
|
|
257
297
|
"symbol-description",
|
|
258
298
|
"unicode-bom",
|
|
259
299
|
"use-isnan",
|
|
@@ -261,6 +301,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
261
301
|
"vars-on-top",
|
|
262
302
|
"wrap-iife",
|
|
263
303
|
"yoda",
|
|
304
|
+
"eslint-comments/no-restricted-disable",
|
|
264
305
|
"import/default",
|
|
265
306
|
"import/export",
|
|
266
307
|
"import/first",
|
|
@@ -274,22 +315,59 @@ const BUILTIN_RULE_IDS = [
|
|
|
274
315
|
"import/no-named-as-default-member",
|
|
275
316
|
"import/no-unresolved",
|
|
276
317
|
"import/no-self-import",
|
|
318
|
+
"jsx-a11y/alt-text",
|
|
319
|
+
"jsx-a11y/anchor-has-content",
|
|
277
320
|
"jsx-a11y/aria-props",
|
|
321
|
+
"jsx-a11y/aria-proptypes",
|
|
322
|
+
"jsx-a11y/aria-role",
|
|
323
|
+
"jsx-a11y/aria-unsupported-elements",
|
|
278
324
|
"jsx-a11y/iframe-has-title",
|
|
279
325
|
"jsx-a11y/img-redundant-alt",
|
|
280
326
|
"jsx-a11y/no-access-key",
|
|
327
|
+
"jsx-a11y/no-distracting-elements",
|
|
328
|
+
"jsx-a11y/role-has-required-aria-props",
|
|
329
|
+
"jsx-a11y/role-supports-aria-props",
|
|
330
|
+
"jsx-a11y/scope",
|
|
331
|
+
"react/button-has-type",
|
|
332
|
+
"react/default-props-match-prop-types",
|
|
333
|
+
"react/display-name",
|
|
334
|
+
"react/forbid-prop-types",
|
|
281
335
|
"react/jsx-boolean-value",
|
|
336
|
+
"react/jsx-filename-extension",
|
|
337
|
+
"react/jsx-key",
|
|
338
|
+
"react/jsx-no-bind",
|
|
282
339
|
"react/jsx-no-comment-textnodes",
|
|
283
340
|
"react/jsx-no-duplicate-props",
|
|
341
|
+
"react/jsx-no-undef",
|
|
342
|
+
"react/jsx-uses-react",
|
|
343
|
+
"react/jsx-uses-vars",
|
|
284
344
|
"react/jsx-no-target-blank",
|
|
285
345
|
"react/jsx-pascal-case",
|
|
346
|
+
"react/no-access-state-in-setstate",
|
|
347
|
+
"react/no-array-index-key",
|
|
348
|
+
"react/no-children-prop",
|
|
286
349
|
"react/no-danger",
|
|
350
|
+
"react/no-danger-with-children",
|
|
351
|
+
"react/no-deprecated",
|
|
287
352
|
"react/no-find-dom-node",
|
|
288
353
|
"react/no-is-mounted",
|
|
354
|
+
"react/no-multi-comp",
|
|
355
|
+
"react/no-redundant-should-component-update",
|
|
289
356
|
"react/no-render-return-value",
|
|
357
|
+
"react/no-string-refs",
|
|
358
|
+
"react/no-this-in-sfc",
|
|
359
|
+
"react/no-typos",
|
|
290
360
|
"react/no-unescaped-entities",
|
|
361
|
+
"react/no-unknown-property",
|
|
291
362
|
"react/no-unused-prop-types",
|
|
363
|
+
"react/no-unused-state",
|
|
364
|
+
"react/no-will-update-set-state",
|
|
365
|
+
"react/prefer-es6-class",
|
|
292
366
|
"react/prop-types",
|
|
367
|
+
"react/require-render-return",
|
|
368
|
+
"react/self-closing-comp",
|
|
369
|
+
"react/style-prop-object",
|
|
370
|
+
"react/void-dom-elements-no-children",
|
|
293
371
|
"react-hooks/rules-of-hooks",
|
|
294
372
|
"@typescript-eslint/adjacent-overload-signatures",
|
|
295
373
|
"@typescript-eslint/array-type",
|
|
@@ -313,6 +391,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
313
391
|
"@typescript-eslint/no-extra-non-null-assertion",
|
|
314
392
|
"@typescript-eslint/no-inferrable-types",
|
|
315
393
|
"@typescript-eslint/no-invalid-void-type",
|
|
394
|
+
"@typescript-eslint/no-loop-func",
|
|
316
395
|
"@typescript-eslint/no-loss-of-precision",
|
|
317
396
|
"@typescript-eslint/no-misused-new",
|
|
318
397
|
"@typescript-eslint/no-namespace",
|
package/index.js
CHANGED
|
@@ -86,9 +86,13 @@ process.stdout.write(json);
|
|
|
86
86
|
const BUILTIN_RULE_IDS = [
|
|
87
87
|
"accessor-pairs",
|
|
88
88
|
"array-callback-return",
|
|
89
|
+
"arrow-body-style",
|
|
89
90
|
"block-scoped-var",
|
|
91
|
+
"camelcase",
|
|
90
92
|
"capitalized-comments",
|
|
93
|
+
"complexity",
|
|
91
94
|
"consistent-return",
|
|
95
|
+
"consistent-this",
|
|
92
96
|
"constructor-super",
|
|
93
97
|
"curly",
|
|
94
98
|
"default-case",
|
|
@@ -100,11 +104,23 @@ const BUILTIN_RULE_IDS = [
|
|
|
100
104
|
"for-direction",
|
|
101
105
|
"func-name-matching",
|
|
102
106
|
"func-names",
|
|
107
|
+
"func-style",
|
|
103
108
|
"getter-return",
|
|
104
109
|
"grouped-accessor-pairs",
|
|
105
110
|
"guard-for-in",
|
|
111
|
+
"id-denylist",
|
|
112
|
+
"id-length",
|
|
113
|
+
"id-match",
|
|
114
|
+
"init-declarations",
|
|
106
115
|
"linebreak-style",
|
|
107
116
|
"logical-assignment-operators",
|
|
117
|
+
"max-classes-per-file",
|
|
118
|
+
"max-depth",
|
|
119
|
+
"max-lines",
|
|
120
|
+
"max-lines-per-function",
|
|
121
|
+
"max-nested-callbacks",
|
|
122
|
+
"max-params",
|
|
123
|
+
"max-statements",
|
|
108
124
|
"new-cap",
|
|
109
125
|
"new-parens",
|
|
110
126
|
"no-alert",
|
|
@@ -122,6 +138,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
122
138
|
"no-cond-assign",
|
|
123
139
|
"no-console",
|
|
124
140
|
"no-const-assign",
|
|
141
|
+
"no-constant-binary-expression",
|
|
125
142
|
"no-constant-condition",
|
|
126
143
|
"no-constructor-return",
|
|
127
144
|
"no-continue",
|
|
@@ -158,6 +175,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
158
175
|
"no-global-is-finite",
|
|
159
176
|
"no-global-is-nan",
|
|
160
177
|
"no-implicit-coercion",
|
|
178
|
+
"no-implicit-globals",
|
|
161
179
|
"no-implied-eval",
|
|
162
180
|
"no-import-assign",
|
|
163
181
|
"no-inline-comments",
|
|
@@ -199,6 +217,13 @@ const BUILTIN_RULE_IDS = [
|
|
|
199
217
|
"no-promise-executor-return",
|
|
200
218
|
"no-proto",
|
|
201
219
|
"no-prototype-builtins",
|
|
220
|
+
"no-redeclare",
|
|
221
|
+
"no-restricted-exports",
|
|
222
|
+
"no-restricted-globals",
|
|
223
|
+
"no-restricted-imports",
|
|
224
|
+
"no-restricted-modules",
|
|
225
|
+
"no-restricted-properties",
|
|
226
|
+
"no-restricted-syntax",
|
|
202
227
|
"no-regex-spaces",
|
|
203
228
|
"no-return-assign",
|
|
204
229
|
"no-return-await",
|
|
@@ -207,6 +232,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
207
232
|
"no-self-compare",
|
|
208
233
|
"no-sequences",
|
|
209
234
|
"no-setter-return",
|
|
235
|
+
"no-shadow",
|
|
210
236
|
"no-shadow-restricted-names",
|
|
211
237
|
"no-sparse-arrays",
|
|
212
238
|
"no-tabs",
|
|
@@ -217,15 +243,21 @@ const BUILTIN_RULE_IDS = [
|
|
|
217
243
|
"no-trailing-spaces",
|
|
218
244
|
"no-undef",
|
|
219
245
|
"no-undef-init",
|
|
246
|
+
"no-unassigned-vars",
|
|
220
247
|
"no-underscore-dangle",
|
|
221
248
|
"no-undefined",
|
|
222
249
|
"no-unneeded-ternary",
|
|
223
250
|
"no-unreachable",
|
|
251
|
+
"no-unreachable-loop",
|
|
224
252
|
"no-unsafe-finally",
|
|
225
253
|
"no-unsafe-negation",
|
|
254
|
+
"no-unsafe-optional-chaining",
|
|
226
255
|
"no-unused-expressions",
|
|
227
256
|
"no-unused-labels",
|
|
257
|
+
"no-unused-private-class-members",
|
|
228
258
|
"no-unused-vars",
|
|
259
|
+
"no-use-before-define",
|
|
260
|
+
"no-useless-backreference",
|
|
229
261
|
"no-useless-call",
|
|
230
262
|
"no-useless-catch",
|
|
231
263
|
"no-useless-computed-key",
|
|
@@ -241,13 +273,16 @@ const BUILTIN_RULE_IDS = [
|
|
|
241
273
|
"object-shorthand",
|
|
242
274
|
"one-var",
|
|
243
275
|
"operator-assignment",
|
|
276
|
+
"prefer-arrow-callback",
|
|
244
277
|
"prefer-const",
|
|
245
278
|
"prefer-destructuring",
|
|
246
279
|
"prefer-exponentiation-operator",
|
|
280
|
+
"prefer-named-capture-group",
|
|
247
281
|
"prefer-numeric-literals",
|
|
248
282
|
"prefer-object-has-own",
|
|
249
283
|
"prefer-object-spread",
|
|
250
284
|
"prefer-promise-reject-errors",
|
|
285
|
+
"preserve-caught-error",
|
|
251
286
|
"prefer-regex-literals",
|
|
252
287
|
"prefer-rest-params",
|
|
253
288
|
"prefer-spread",
|
|
@@ -255,8 +290,13 @@ const BUILTIN_RULE_IDS = [
|
|
|
255
290
|
"radix",
|
|
256
291
|
"require-await",
|
|
257
292
|
"require-atomic-updates",
|
|
293
|
+
"require-unicode-regexp",
|
|
258
294
|
"require-yield",
|
|
295
|
+
"sort-imports",
|
|
296
|
+
"sort-keys",
|
|
297
|
+
"sort-vars",
|
|
259
298
|
"spaced-comment",
|
|
299
|
+
"strict",
|
|
260
300
|
"symbol-description",
|
|
261
301
|
"unicode-bom",
|
|
262
302
|
"use-isnan",
|
|
@@ -264,6 +304,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
264
304
|
"vars-on-top",
|
|
265
305
|
"wrap-iife",
|
|
266
306
|
"yoda",
|
|
307
|
+
"eslint-comments/no-restricted-disable",
|
|
267
308
|
"import/default",
|
|
268
309
|
"import/export",
|
|
269
310
|
"import/first",
|
|
@@ -277,22 +318,59 @@ const BUILTIN_RULE_IDS = [
|
|
|
277
318
|
"import/no-named-as-default-member",
|
|
278
319
|
"import/no-unresolved",
|
|
279
320
|
"import/no-self-import",
|
|
321
|
+
"jsx-a11y/alt-text",
|
|
322
|
+
"jsx-a11y/anchor-has-content",
|
|
280
323
|
"jsx-a11y/aria-props",
|
|
324
|
+
"jsx-a11y/aria-proptypes",
|
|
325
|
+
"jsx-a11y/aria-role",
|
|
326
|
+
"jsx-a11y/aria-unsupported-elements",
|
|
281
327
|
"jsx-a11y/iframe-has-title",
|
|
282
328
|
"jsx-a11y/img-redundant-alt",
|
|
283
329
|
"jsx-a11y/no-access-key",
|
|
330
|
+
"jsx-a11y/no-distracting-elements",
|
|
331
|
+
"jsx-a11y/role-has-required-aria-props",
|
|
332
|
+
"jsx-a11y/role-supports-aria-props",
|
|
333
|
+
"jsx-a11y/scope",
|
|
334
|
+
"react/button-has-type",
|
|
335
|
+
"react/default-props-match-prop-types",
|
|
336
|
+
"react/display-name",
|
|
337
|
+
"react/forbid-prop-types",
|
|
284
338
|
"react/jsx-boolean-value",
|
|
339
|
+
"react/jsx-filename-extension",
|
|
340
|
+
"react/jsx-key",
|
|
341
|
+
"react/jsx-no-bind",
|
|
285
342
|
"react/jsx-no-comment-textnodes",
|
|
286
343
|
"react/jsx-no-duplicate-props",
|
|
344
|
+
"react/jsx-no-undef",
|
|
345
|
+
"react/jsx-uses-react",
|
|
346
|
+
"react/jsx-uses-vars",
|
|
287
347
|
"react/jsx-no-target-blank",
|
|
288
348
|
"react/jsx-pascal-case",
|
|
349
|
+
"react/no-access-state-in-setstate",
|
|
350
|
+
"react/no-array-index-key",
|
|
351
|
+
"react/no-children-prop",
|
|
289
352
|
"react/no-danger",
|
|
353
|
+
"react/no-danger-with-children",
|
|
354
|
+
"react/no-deprecated",
|
|
290
355
|
"react/no-find-dom-node",
|
|
291
356
|
"react/no-is-mounted",
|
|
357
|
+
"react/no-multi-comp",
|
|
358
|
+
"react/no-redundant-should-component-update",
|
|
292
359
|
"react/no-render-return-value",
|
|
360
|
+
"react/no-string-refs",
|
|
361
|
+
"react/no-this-in-sfc",
|
|
362
|
+
"react/no-typos",
|
|
293
363
|
"react/no-unescaped-entities",
|
|
364
|
+
"react/no-unknown-property",
|
|
294
365
|
"react/no-unused-prop-types",
|
|
366
|
+
"react/no-unused-state",
|
|
367
|
+
"react/no-will-update-set-state",
|
|
368
|
+
"react/prefer-es6-class",
|
|
295
369
|
"react/prop-types",
|
|
370
|
+
"react/require-render-return",
|
|
371
|
+
"react/self-closing-comp",
|
|
372
|
+
"react/style-prop-object",
|
|
373
|
+
"react/void-dom-elements-no-children",
|
|
296
374
|
"react-hooks/rules-of-hooks",
|
|
297
375
|
"@typescript-eslint/adjacent-overload-signatures",
|
|
298
376
|
"@typescript-eslint/array-type",
|
|
@@ -316,6 +394,7 @@ const BUILTIN_RULE_IDS = [
|
|
|
316
394
|
"@typescript-eslint/no-extra-non-null-assertion",
|
|
317
395
|
"@typescript-eslint/no-inferrable-types",
|
|
318
396
|
"@typescript-eslint/no-invalid-void-type",
|
|
397
|
+
"@typescript-eslint/no-loop-func",
|
|
319
398
|
"@typescript-eslint/no-loss-of-precision",
|
|
320
399
|
"@typescript-eslint/no-misused-new",
|
|
321
400
|
"@typescript-eslint/no-namespace",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/lint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Experimental JavaScript and TypeScript linter powered by Yuku",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"use-at-your-own-risk.js"
|
|
71
71
|
],
|
|
72
72
|
"optionalDependencies": {
|
|
73
|
-
"@utoo/lint-darwin-arm64": "0.
|
|
74
|
-
"@utoo/lint-darwin-x64": "0.
|
|
75
|
-
"@utoo/lint-linux-arm64": "0.
|
|
76
|
-
"@utoo/lint-linux-x64": "0.
|
|
77
|
-
"@utoo/lint-win32-x64": "0.
|
|
73
|
+
"@utoo/lint-darwin-arm64": "0.1.2",
|
|
74
|
+
"@utoo/lint-darwin-x64": "0.1.2",
|
|
75
|
+
"@utoo/lint-linux-arm64": "0.1.2",
|
|
76
|
+
"@utoo/lint-linux-x64": "0.1.2",
|
|
77
|
+
"@utoo/lint-win32-x64": "0.1.2"
|
|
78
78
|
},
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public",
|
|
81
81
|
"registry": "https://registry.npmjs.org/"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|