adamantite 0.30.2 → 0.32.0
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/README.md +17 -24
- package/dist/index.js +33 -22
- package/dist/presets/analyze.d.ts +23 -0
- package/dist/presets/analyze.js +33 -0
- package/dist/presets/format.d.ts +50 -0
- package/dist/presets/format.js +63 -0
- package/dist/presets/lint/core.d.ts +431 -426
- package/dist/presets/lint/core.js +9 -5
- package/dist/presets/lint/jest.d.ts +57 -54
- package/dist/presets/lint/jest.js +5 -3
- package/dist/presets/lint/nextjs.d.ts +23 -23
- package/dist/presets/lint/nextjs.js +2 -3
- package/dist/presets/lint/node.d.ts +5 -5
- package/dist/presets/lint/node.js +2 -3
- package/dist/presets/lint/react.d.ts +75 -73
- package/dist/presets/lint/react.js +4 -3
- package/dist/presets/lint/vitest.d.ts +19 -17
- package/dist/presets/lint/vitest.js +7 -6
- package/dist/presets/lint/vue.d.ts +18 -18
- package/dist/presets/lint/vue.js +2 -3
- package/package.json +28 -20
- package/presets/analyze.ts +31 -0
- package/presets/format.ts +61 -0
- package/presets/lint/core.ts +10 -5
- package/presets/lint/jest.ts +6 -3
- package/presets/lint/nextjs.ts +3 -3
- package/presets/lint/node.ts +3 -3
- package/presets/lint/react.ts +5 -3
- package/presets/lint/vitest.ts +7 -5
- package/presets/lint/vue.ts +3 -3
- package/dist/presets/format.json +0 -44
- package/dist/presets/knip.json +0 -29
- package/presets/format.json +0 -44
- package/presets/knip.json +0 -29
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// presets/lint/core.ts
|
|
2
|
-
|
|
3
|
-
var core_default = defineConfig({
|
|
4
|
-
ignorePatterns: ["**/node_modules", "**/.git", "**/build", "**/dist", "**/.next", "**/.vercel"],
|
|
2
|
+
var core_default = {
|
|
5
3
|
plugins: ["eslint", "typescript", "unicorn", "oxc", "import", "jsdoc", "promise"],
|
|
6
4
|
rules: {
|
|
7
5
|
"accessor-pairs": "error",
|
|
@@ -17,7 +15,6 @@ var core_default = defineConfig({
|
|
|
17
15
|
}
|
|
18
16
|
],
|
|
19
17
|
"class-methods-use-this": "warn",
|
|
20
|
-
"comma-dangle": ["error"],
|
|
21
18
|
"constructor-super": "error",
|
|
22
19
|
"default-case": "off",
|
|
23
20
|
"default-case-last": "error",
|
|
@@ -161,6 +158,7 @@ var core_default = defineConfig({
|
|
|
161
158
|
"no-unused-labels": "error",
|
|
162
159
|
"no-unused-private-class-members": "error",
|
|
163
160
|
"no-unused-vars": "error",
|
|
161
|
+
"no-useless-assignment": "error",
|
|
164
162
|
"no-useless-backreference": "error",
|
|
165
163
|
"no-useless-call": "error",
|
|
166
164
|
"no-useless-catch": "error",
|
|
@@ -172,6 +170,7 @@ var core_default = defineConfig({
|
|
|
172
170
|
"no-useless-return": "error",
|
|
173
171
|
"no-var": "error",
|
|
174
172
|
"no-with": "error",
|
|
173
|
+
"object-shorthand": "error",
|
|
175
174
|
"operator-assignment": "error",
|
|
176
175
|
"oxc/approx-constant": "error",
|
|
177
176
|
"oxc/bad-array-method-on-arguments": "error",
|
|
@@ -347,6 +346,8 @@ var core_default = defineConfig({
|
|
|
347
346
|
"unicorn/consistent-empty-array-spread": "error",
|
|
348
347
|
"unicorn/consistent-existence-index-check": "error",
|
|
349
348
|
"unicorn/consistent-function-scoping": "error",
|
|
349
|
+
"unicorn/consistent-template-literal-escape": "error",
|
|
350
|
+
"unicorn/custom-error-definition": "error",
|
|
350
351
|
"unicorn/empty-brace-spaces": "error",
|
|
351
352
|
"unicorn/error-message": "error",
|
|
352
353
|
"unicorn/escape-case": "error",
|
|
@@ -390,6 +391,7 @@ var core_default = defineConfig({
|
|
|
390
391
|
"unicorn/no-useless-collection-argument": "error",
|
|
391
392
|
"unicorn/no-useless-error-capture-stack-trace": "error",
|
|
392
393
|
"unicorn/no-useless-fallback-in-spread": "error",
|
|
394
|
+
"unicorn/no-useless-iterator-to-array": "error",
|
|
393
395
|
"unicorn/no-useless-length-check": "error",
|
|
394
396
|
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
395
397
|
"unicorn/no-useless-spread": "error",
|
|
@@ -418,6 +420,7 @@ var core_default = defineConfig({
|
|
|
418
420
|
"unicorn/prefer-dom-node-text-content": "error",
|
|
419
421
|
"unicorn/prefer-event-target": "error",
|
|
420
422
|
"unicorn/prefer-global-this": "error",
|
|
423
|
+
"unicorn/prefer-import-meta-properties": "error",
|
|
421
424
|
"unicorn/prefer-keyboard-event-key": "error",
|
|
422
425
|
"unicorn/prefer-logical-operator-over-ternary": "error",
|
|
423
426
|
"unicorn/prefer-math-min-max": "error",
|
|
@@ -450,6 +453,7 @@ var core_default = defineConfig({
|
|
|
450
453
|
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
451
454
|
"unicorn/require-post-message-target-origin": "error",
|
|
452
455
|
"unicorn/switch-case-braces": ["error", "avoid"],
|
|
456
|
+
"unicorn/switch-case-break-position": "error",
|
|
453
457
|
"unicorn/text-encoding-identifier-case": "error",
|
|
454
458
|
"unicorn/throw-new-error": "error",
|
|
455
459
|
"use-isnan": "error",
|
|
@@ -457,7 +461,7 @@ var core_default = defineConfig({
|
|
|
457
461
|
"vars-on-top": "error",
|
|
458
462
|
yoda: "error"
|
|
459
463
|
}
|
|
460
|
-
}
|
|
464
|
+
};
|
|
461
465
|
export {
|
|
462
466
|
core_default as default
|
|
463
467
|
};
|
|
@@ -1,58 +1,61 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
plugins: "jest"
|
|
3
|
-
rules: {
|
|
4
|
-
"jest/consistent-test-it": "error";
|
|
5
|
-
"jest/expect-expect": "error";
|
|
6
|
-
"jest/max-expects": "error";
|
|
7
|
-
"jest/max-nested-describe": "error";
|
|
8
|
-
"jest/no-alias-methods": "error";
|
|
9
|
-
"jest/no-commented-out-tests": "error";
|
|
10
|
-
"jest/no-conditional-expect": "error";
|
|
11
|
-
"jest/no-conditional-in-test": "error";
|
|
12
|
-
"jest/no-confusing-set-timeout": "error";
|
|
13
|
-
"jest/no-deprecated-functions": "error";
|
|
14
|
-
"jest/no-disabled-tests": "error";
|
|
15
|
-
"jest/no-done-callback": "error";
|
|
16
|
-
"jest/no-duplicate-hooks": "error";
|
|
17
|
-
"jest/no-export": "error";
|
|
18
|
-
"jest/no-focused-tests": "error";
|
|
19
|
-
"jest/no-hooks": "error";
|
|
20
|
-
"jest/no-identical-title": "error";
|
|
21
|
-
"jest/no-interpolation-in-snapshots": "error";
|
|
22
|
-
"jest/no-jasmine-globals": "error";
|
|
23
|
-
"jest/no-large-snapshots": "error";
|
|
24
|
-
"jest/no-mocks-import": "error";
|
|
25
|
-
"jest/no-restricted-jest-methods": "error";
|
|
26
|
-
"jest/no-restricted-matchers": "error";
|
|
27
|
-
"jest/no-standalone-expect": "error";
|
|
28
|
-
"jest/no-test-prefixes": "error";
|
|
29
|
-
"jest/no-test-return-statement": "error";
|
|
30
|
-
"jest/no-untyped-mock-factory": "error";
|
|
31
|
-
"jest/padding-around-
|
|
32
|
-
"jest/
|
|
33
|
-
"jest/prefer-
|
|
34
|
-
"jest/prefer-
|
|
35
|
-
"jest/prefer-
|
|
36
|
-
"jest/prefer-expect
|
|
37
|
-
"jest/prefer-
|
|
38
|
-
"jest/prefer-
|
|
39
|
-
"jest/prefer-
|
|
40
|
-
"jest/prefer-
|
|
41
|
-
"jest/prefer-
|
|
42
|
-
"jest/prefer-
|
|
43
|
-
"jest/prefer-
|
|
44
|
-
"jest/prefer-
|
|
45
|
-
"jest/prefer-
|
|
46
|
-
"jest/prefer-to-
|
|
47
|
-
"jest/prefer-to-
|
|
48
|
-
"jest/prefer-to-have-
|
|
49
|
-
"jest/prefer-
|
|
50
|
-
"jest/
|
|
51
|
-
"jest/
|
|
52
|
-
"jest/require-
|
|
53
|
-
"jest/
|
|
54
|
-
"jest/
|
|
55
|
-
"jest/valid-
|
|
2
|
+
readonly plugins: readonly ["jest"];
|
|
3
|
+
readonly rules: {
|
|
4
|
+
readonly "jest/consistent-test-it": "error";
|
|
5
|
+
readonly "jest/expect-expect": "error";
|
|
6
|
+
readonly "jest/max-expects": "error";
|
|
7
|
+
readonly "jest/max-nested-describe": "error";
|
|
8
|
+
readonly "jest/no-alias-methods": "error";
|
|
9
|
+
readonly "jest/no-commented-out-tests": "error";
|
|
10
|
+
readonly "jest/no-conditional-expect": "error";
|
|
11
|
+
readonly "jest/no-conditional-in-test": "error";
|
|
12
|
+
readonly "jest/no-confusing-set-timeout": "error";
|
|
13
|
+
readonly "jest/no-deprecated-functions": "error";
|
|
14
|
+
readonly "jest/no-disabled-tests": "error";
|
|
15
|
+
readonly "jest/no-done-callback": "error";
|
|
16
|
+
readonly "jest/no-duplicate-hooks": "error";
|
|
17
|
+
readonly "jest/no-export": "error";
|
|
18
|
+
readonly "jest/no-focused-tests": "error";
|
|
19
|
+
readonly "jest/no-hooks": "error";
|
|
20
|
+
readonly "jest/no-identical-title": "error";
|
|
21
|
+
readonly "jest/no-interpolation-in-snapshots": "error";
|
|
22
|
+
readonly "jest/no-jasmine-globals": "error";
|
|
23
|
+
readonly "jest/no-large-snapshots": "error";
|
|
24
|
+
readonly "jest/no-mocks-import": "error";
|
|
25
|
+
readonly "jest/no-restricted-jest-methods": "error";
|
|
26
|
+
readonly "jest/no-restricted-matchers": "error";
|
|
27
|
+
readonly "jest/no-standalone-expect": "error";
|
|
28
|
+
readonly "jest/no-test-prefixes": "error";
|
|
29
|
+
readonly "jest/no-test-return-statement": "error";
|
|
30
|
+
readonly "jest/no-untyped-mock-factory": "error";
|
|
31
|
+
readonly "jest/padding-around-after-all-blocks": "error";
|
|
32
|
+
readonly "jest/padding-around-test-blocks": "error";
|
|
33
|
+
readonly "jest/prefer-called-with": "error";
|
|
34
|
+
readonly "jest/prefer-comparison-matcher": "error";
|
|
35
|
+
readonly "jest/prefer-each": "error";
|
|
36
|
+
readonly "jest/prefer-ending-with-an-expect": "error";
|
|
37
|
+
readonly "jest/prefer-equality-matcher": "error";
|
|
38
|
+
readonly "jest/prefer-expect-resolves": "error";
|
|
39
|
+
readonly "jest/prefer-hooks-in-order": "error";
|
|
40
|
+
readonly "jest/prefer-hooks-on-top": "error";
|
|
41
|
+
readonly "jest/prefer-jest-mocked": "error";
|
|
42
|
+
readonly "jest/prefer-lowercase-title": "error";
|
|
43
|
+
readonly "jest/prefer-mock-promise-shorthand": "error";
|
|
44
|
+
readonly "jest/prefer-spy-on": "error";
|
|
45
|
+
readonly "jest/prefer-strict-equal": "error";
|
|
46
|
+
readonly "jest/prefer-to-be": "error";
|
|
47
|
+
readonly "jest/prefer-to-contain": "error";
|
|
48
|
+
readonly "jest/prefer-to-have-been-called": "error";
|
|
49
|
+
readonly "jest/prefer-to-have-been-called-times": "error";
|
|
50
|
+
readonly "jest/prefer-to-have-length": "error";
|
|
51
|
+
readonly "jest/prefer-todo": "error";
|
|
52
|
+
readonly "jest/require-hook": "error";
|
|
53
|
+
readonly "jest/require-to-throw-message": "error";
|
|
54
|
+
readonly "jest/require-top-level-describe": "error";
|
|
55
|
+
readonly "jest/valid-describe-callback": "error";
|
|
56
|
+
readonly "jest/valid-expect": "error";
|
|
57
|
+
readonly "jest/valid-expect-in-promise": "error";
|
|
58
|
+
readonly "jest/valid-title": "error";
|
|
56
59
|
};
|
|
57
60
|
};
|
|
58
61
|
export { _default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// presets/lint/jest.ts
|
|
2
|
-
|
|
3
|
-
var jest_default = defineConfig({
|
|
2
|
+
var jest_default = {
|
|
4
3
|
plugins: ["jest"],
|
|
5
4
|
rules: {
|
|
6
5
|
"jest/consistent-test-it": "error",
|
|
@@ -30,10 +29,12 @@ var jest_default = defineConfig({
|
|
|
30
29
|
"jest/no-test-prefixes": "error",
|
|
31
30
|
"jest/no-test-return-statement": "error",
|
|
32
31
|
"jest/no-untyped-mock-factory": "error",
|
|
32
|
+
"jest/padding-around-after-all-blocks": "error",
|
|
33
33
|
"jest/padding-around-test-blocks": "error",
|
|
34
34
|
"jest/prefer-called-with": "error",
|
|
35
35
|
"jest/prefer-comparison-matcher": "error",
|
|
36
36
|
"jest/prefer-each": "error",
|
|
37
|
+
"jest/prefer-ending-with-an-expect": "error",
|
|
37
38
|
"jest/prefer-equality-matcher": "error",
|
|
38
39
|
"jest/prefer-expect-resolves": "error",
|
|
39
40
|
"jest/prefer-hooks-in-order": "error",
|
|
@@ -54,9 +55,10 @@ var jest_default = defineConfig({
|
|
|
54
55
|
"jest/require-top-level-describe": "error",
|
|
55
56
|
"jest/valid-describe-callback": "error",
|
|
56
57
|
"jest/valid-expect": "error",
|
|
58
|
+
"jest/valid-expect-in-promise": "error",
|
|
57
59
|
"jest/valid-title": "error"
|
|
58
60
|
}
|
|
59
|
-
}
|
|
61
|
+
};
|
|
60
62
|
export {
|
|
61
63
|
jest_default as default
|
|
62
64
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
plugins: "nextjs"
|
|
3
|
-
rules: {
|
|
4
|
-
"nextjs/google-font-display": "error";
|
|
5
|
-
"nextjs/google-font-preconnect": "error";
|
|
6
|
-
"nextjs/inline-script-id": "error";
|
|
7
|
-
"nextjs/next-script-for-ga": "error";
|
|
8
|
-
"nextjs/no-assign-module-variable": "error";
|
|
9
|
-
"nextjs/no-async-client-component": "error";
|
|
10
|
-
"nextjs/no-before-interactive-script-outside-document": "error";
|
|
11
|
-
"nextjs/no-css-tags": "error";
|
|
12
|
-
"nextjs/no-document-import-in-page": "error";
|
|
13
|
-
"nextjs/no-duplicate-head": "error";
|
|
14
|
-
"nextjs/no-head-element": "error";
|
|
15
|
-
"nextjs/no-head-import-in-document": "error";
|
|
16
|
-
"nextjs/no-html-link-for-pages": "error";
|
|
17
|
-
"nextjs/no-img-element": "error";
|
|
18
|
-
"nextjs/no-page-custom-font": "error";
|
|
19
|
-
"nextjs/no-script-component-in-head": "error";
|
|
20
|
-
"nextjs/no-styled-jsx-in-document": "error";
|
|
21
|
-
"nextjs/no-sync-scripts": "error";
|
|
22
|
-
"nextjs/no-title-in-document-head": "error";
|
|
23
|
-
"nextjs/no-typos": "error";
|
|
24
|
-
"nextjs/no-unwanted-polyfillio": "error";
|
|
2
|
+
readonly plugins: readonly ["nextjs"];
|
|
3
|
+
readonly rules: {
|
|
4
|
+
readonly "nextjs/google-font-display": "error";
|
|
5
|
+
readonly "nextjs/google-font-preconnect": "error";
|
|
6
|
+
readonly "nextjs/inline-script-id": "error";
|
|
7
|
+
readonly "nextjs/next-script-for-ga": "error";
|
|
8
|
+
readonly "nextjs/no-assign-module-variable": "error";
|
|
9
|
+
readonly "nextjs/no-async-client-component": "error";
|
|
10
|
+
readonly "nextjs/no-before-interactive-script-outside-document": "error";
|
|
11
|
+
readonly "nextjs/no-css-tags": "error";
|
|
12
|
+
readonly "nextjs/no-document-import-in-page": "error";
|
|
13
|
+
readonly "nextjs/no-duplicate-head": "error";
|
|
14
|
+
readonly "nextjs/no-head-element": "error";
|
|
15
|
+
readonly "nextjs/no-head-import-in-document": "error";
|
|
16
|
+
readonly "nextjs/no-html-link-for-pages": "error";
|
|
17
|
+
readonly "nextjs/no-img-element": "error";
|
|
18
|
+
readonly "nextjs/no-page-custom-font": "error";
|
|
19
|
+
readonly "nextjs/no-script-component-in-head": "error";
|
|
20
|
+
readonly "nextjs/no-styled-jsx-in-document": "error";
|
|
21
|
+
readonly "nextjs/no-sync-scripts": "error";
|
|
22
|
+
readonly "nextjs/no-title-in-document-head": "error";
|
|
23
|
+
readonly "nextjs/no-typos": "error";
|
|
24
|
+
readonly "nextjs/no-unwanted-polyfillio": "error";
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
export { _default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// presets/lint/nextjs.ts
|
|
2
|
-
|
|
3
|
-
var nextjs_default = defineConfig({
|
|
2
|
+
var nextjs_default = {
|
|
4
3
|
plugins: ["nextjs"],
|
|
5
4
|
rules: {
|
|
6
5
|
"nextjs/google-font-display": "error",
|
|
@@ -25,7 +24,7 @@ var nextjs_default = defineConfig({
|
|
|
25
24
|
"nextjs/no-typos": "error",
|
|
26
25
|
"nextjs/no-unwanted-polyfillio": "error"
|
|
27
26
|
}
|
|
28
|
-
}
|
|
27
|
+
};
|
|
29
28
|
export {
|
|
30
29
|
nextjs_default as default
|
|
31
30
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
plugins: "node"
|
|
3
|
-
rules: {
|
|
4
|
-
"node/no-exports-assign": "error";
|
|
5
|
-
"node/no-new-require": "error";
|
|
6
|
-
"node/no-path-concat": "error";
|
|
2
|
+
readonly plugins: readonly ["node"];
|
|
3
|
+
readonly rules: {
|
|
4
|
+
readonly "node/no-exports-assign": "error";
|
|
5
|
+
readonly "node/no-new-require": "error";
|
|
6
|
+
readonly "node/no-path-concat": "error";
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
export { _default as default };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// presets/lint/node.ts
|
|
2
|
-
|
|
3
|
-
var node_default = defineConfig({
|
|
2
|
+
var node_default = {
|
|
4
3
|
plugins: ["node"],
|
|
5
4
|
rules: {
|
|
6
5
|
"node/no-exports-assign": "error",
|
|
7
6
|
"node/no-new-require": "error",
|
|
8
7
|
"node/no-path-concat": "error"
|
|
9
8
|
}
|
|
10
|
-
}
|
|
9
|
+
};
|
|
11
10
|
export {
|
|
12
11
|
node_default as default
|
|
13
12
|
};
|
|
@@ -1,77 +1,79 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
plugins:
|
|
3
|
-
rules: {
|
|
4
|
-
"jsx-a11y/alt-text": "error";
|
|
5
|
-
"jsx-a11y/anchor-has-content": "error";
|
|
6
|
-
"jsx-a11y/anchor-is-valid": "error";
|
|
7
|
-
"jsx-a11y/aria-activedescendant-has-tabindex": "error";
|
|
8
|
-
"jsx-a11y/aria-props": "error";
|
|
9
|
-
"jsx-a11y/aria-role": "error";
|
|
10
|
-
"jsx-a11y/aria-unsupported-elements": "error";
|
|
11
|
-
"jsx-a11y/autocomplete-valid": "error";
|
|
12
|
-
"jsx-a11y/click-events-have-key-events": "error";
|
|
13
|
-
"jsx-a11y/heading-has-content": "error";
|
|
14
|
-
"jsx-a11y/html-has-lang": "error";
|
|
15
|
-
"jsx-a11y/iframe-has-title": "error";
|
|
16
|
-
"jsx-a11y/img-redundant-alt": "error";
|
|
17
|
-
"jsx-a11y/label-has-associated-control": "error";
|
|
18
|
-
"jsx-a11y/lang": "error";
|
|
19
|
-
"jsx-a11y/media-has-caption": "error";
|
|
20
|
-
"jsx-a11y/mouse-events-have-key-events": "error";
|
|
21
|
-
"jsx-a11y/no-access-key": "error";
|
|
22
|
-
"jsx-a11y/no-ambiguous-text": "error";
|
|
23
|
-
"jsx-a11y/no-aria-hidden-on-focusable": "error";
|
|
24
|
-
"jsx-a11y/no-autofocus": "error";
|
|
25
|
-
"jsx-a11y/no-distracting-elements": "error";
|
|
26
|
-
"jsx-a11y/no-noninteractive-tabindex": "error";
|
|
27
|
-
"jsx-a11y/no-redundant-roles": "error";
|
|
28
|
-
"jsx-a11y/prefer-tag-over-role": "error";
|
|
29
|
-
"jsx-a11y/role-has-required-aria-props": "error";
|
|
30
|
-
"jsx-a11y/role-supports-aria-props": "error";
|
|
31
|
-
"jsx-a11y/scope": "error";
|
|
32
|
-
"jsx-a11y/tabindex-no-positive": "error";
|
|
33
|
-
"react/checked-requires-onchange-or-readonly": "error";
|
|
34
|
-
"react/display-name": "off";
|
|
35
|
-
"react/exhaustive-deps": "error";
|
|
36
|
-
"react/
|
|
37
|
-
"react/
|
|
38
|
-
"react/jsx-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"react/jsx-
|
|
44
|
-
"react/jsx-
|
|
45
|
-
"react/jsx-
|
|
46
|
-
"react/jsx-no-
|
|
47
|
-
"react/jsx-no-
|
|
48
|
-
"react/jsx-no-
|
|
49
|
-
"react/jsx-no-
|
|
50
|
-
"react/jsx-no-
|
|
51
|
-
"react/jsx-
|
|
52
|
-
"react/jsx-
|
|
53
|
-
"react/no-
|
|
54
|
-
"react/no-
|
|
55
|
-
"react/no-
|
|
56
|
-
"react/no-danger
|
|
57
|
-
"react/no-
|
|
58
|
-
"react/no-
|
|
59
|
-
"react/no-
|
|
60
|
-
"react/no-
|
|
61
|
-
"react/no-
|
|
62
|
-
"react/no-
|
|
63
|
-
"react/no-
|
|
64
|
-
"react/no-
|
|
65
|
-
"react/no-
|
|
66
|
-
"react/no-
|
|
67
|
-
"react/no-
|
|
68
|
-
"react/no-
|
|
69
|
-
"react/
|
|
70
|
-
"react/
|
|
71
|
-
"react/
|
|
72
|
-
"react/
|
|
73
|
-
"react/
|
|
74
|
-
"react/
|
|
2
|
+
readonly plugins: readonly ["react", "react-perf", "jsx-a11y"];
|
|
3
|
+
readonly rules: {
|
|
4
|
+
readonly "jsx-a11y/alt-text": "error";
|
|
5
|
+
readonly "jsx-a11y/anchor-has-content": "error";
|
|
6
|
+
readonly "jsx-a11y/anchor-is-valid": "error";
|
|
7
|
+
readonly "jsx-a11y/aria-activedescendant-has-tabindex": "error";
|
|
8
|
+
readonly "jsx-a11y/aria-props": "error";
|
|
9
|
+
readonly "jsx-a11y/aria-role": "error";
|
|
10
|
+
readonly "jsx-a11y/aria-unsupported-elements": "error";
|
|
11
|
+
readonly "jsx-a11y/autocomplete-valid": "error";
|
|
12
|
+
readonly "jsx-a11y/click-events-have-key-events": "error";
|
|
13
|
+
readonly "jsx-a11y/heading-has-content": "error";
|
|
14
|
+
readonly "jsx-a11y/html-has-lang": "error";
|
|
15
|
+
readonly "jsx-a11y/iframe-has-title": "error";
|
|
16
|
+
readonly "jsx-a11y/img-redundant-alt": "error";
|
|
17
|
+
readonly "jsx-a11y/label-has-associated-control": "error";
|
|
18
|
+
readonly "jsx-a11y/lang": "error";
|
|
19
|
+
readonly "jsx-a11y/media-has-caption": "error";
|
|
20
|
+
readonly "jsx-a11y/mouse-events-have-key-events": "error";
|
|
21
|
+
readonly "jsx-a11y/no-access-key": "error";
|
|
22
|
+
readonly "jsx-a11y/no-ambiguous-text": "error";
|
|
23
|
+
readonly "jsx-a11y/no-aria-hidden-on-focusable": "error";
|
|
24
|
+
readonly "jsx-a11y/no-autofocus": "error";
|
|
25
|
+
readonly "jsx-a11y/no-distracting-elements": "error";
|
|
26
|
+
readonly "jsx-a11y/no-noninteractive-tabindex": "error";
|
|
27
|
+
readonly "jsx-a11y/no-redundant-roles": "error";
|
|
28
|
+
readonly "jsx-a11y/prefer-tag-over-role": "error";
|
|
29
|
+
readonly "jsx-a11y/role-has-required-aria-props": "error";
|
|
30
|
+
readonly "jsx-a11y/role-supports-aria-props": "error";
|
|
31
|
+
readonly "jsx-a11y/scope": "error";
|
|
32
|
+
readonly "jsx-a11y/tabindex-no-positive": "error";
|
|
33
|
+
readonly "react/checked-requires-onchange-or-readonly": "error";
|
|
34
|
+
readonly "react/display-name": "off";
|
|
35
|
+
readonly "react/exhaustive-deps": "error";
|
|
36
|
+
readonly "react/hook-use-state": "error";
|
|
37
|
+
readonly "react/iframe-missing-sandbox": "error";
|
|
38
|
+
readonly "react/jsx-boolean-value": "error";
|
|
39
|
+
readonly "react/jsx-curly-brace-presence": readonly ["error", {
|
|
40
|
+
readonly children: "never";
|
|
41
|
+
readonly props: "never";
|
|
42
|
+
}];
|
|
43
|
+
readonly "react/jsx-fragments": readonly ["error", "syntax"];
|
|
44
|
+
readonly "react/jsx-handler-names": "error";
|
|
45
|
+
readonly "react/jsx-key": "error";
|
|
46
|
+
readonly "react/jsx-no-comment-textnodes": "error";
|
|
47
|
+
readonly "react/jsx-no-duplicate-props": "error";
|
|
48
|
+
readonly "react/jsx-no-script-url": "error";
|
|
49
|
+
readonly "react/jsx-no-target-blank": "error";
|
|
50
|
+
readonly "react/jsx-no-undef": "error";
|
|
51
|
+
readonly "react/jsx-no-useless-fragment": "error";
|
|
52
|
+
readonly "react/jsx-pascal-case": "error";
|
|
53
|
+
readonly "react/jsx-props-no-spread-multi": "error";
|
|
54
|
+
readonly "react/no-array-index-key": "error";
|
|
55
|
+
readonly "react/no-children-prop": "error";
|
|
56
|
+
readonly "react/no-danger": "error";
|
|
57
|
+
readonly "react/no-danger-with-children": "error";
|
|
58
|
+
readonly "react/no-direct-mutation-state": "error";
|
|
59
|
+
readonly "react/no-find-dom-node": "error";
|
|
60
|
+
readonly "react/no-is-mounted": "error";
|
|
61
|
+
readonly "react/no-multi-comp": "off";
|
|
62
|
+
readonly "react/no-namespace": "error";
|
|
63
|
+
readonly "react/no-redundant-should-component-update": "error";
|
|
64
|
+
readonly "react/no-render-return-value": "error";
|
|
65
|
+
readonly "react/no-set-state": "error";
|
|
66
|
+
readonly "react/no-string-refs": "error";
|
|
67
|
+
readonly "react/no-unescaped-entities": "error";
|
|
68
|
+
readonly "react/no-unknown-property": "error";
|
|
69
|
+
readonly "react/no-unsafe": "error";
|
|
70
|
+
readonly "react/prefer-es6-class": readonly ["error", "always"];
|
|
71
|
+
readonly "react/prefer-function-component": "error";
|
|
72
|
+
readonly "react/rules-of-hooks": "error";
|
|
73
|
+
readonly "react/self-closing-comp": "error";
|
|
74
|
+
readonly "react/state-in-constructor": readonly ["error", "never"];
|
|
75
|
+
readonly "react/style-prop-object": "error";
|
|
76
|
+
readonly "react/void-dom-elements-no-children": "error";
|
|
75
77
|
};
|
|
76
78
|
};
|
|
77
79
|
export { _default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// presets/lint/react.ts
|
|
2
|
-
|
|
3
|
-
var react_default = defineConfig({
|
|
2
|
+
var react_default = {
|
|
4
3
|
plugins: ["react", "react-perf", "jsx-a11y"],
|
|
5
4
|
rules: {
|
|
6
5
|
"jsx-a11y/alt-text": "error",
|
|
@@ -35,6 +34,7 @@ var react_default = defineConfig({
|
|
|
35
34
|
"react/checked-requires-onchange-or-readonly": "error",
|
|
36
35
|
"react/display-name": "off",
|
|
37
36
|
"react/exhaustive-deps": "error",
|
|
37
|
+
"react/hook-use-state": "error",
|
|
38
38
|
"react/iframe-missing-sandbox": "error",
|
|
39
39
|
"react/jsx-boolean-value": "error",
|
|
40
40
|
"react/jsx-curly-brace-presence": [
|
|
@@ -72,13 +72,14 @@ var react_default = defineConfig({
|
|
|
72
72
|
"react/no-unknown-property": "error",
|
|
73
73
|
"react/no-unsafe": "error",
|
|
74
74
|
"react/prefer-es6-class": ["error", "always"],
|
|
75
|
+
"react/prefer-function-component": "error",
|
|
75
76
|
"react/rules-of-hooks": "error",
|
|
76
77
|
"react/self-closing-comp": "error",
|
|
77
78
|
"react/state-in-constructor": ["error", "never"],
|
|
78
79
|
"react/style-prop-object": "error",
|
|
79
80
|
"react/void-dom-elements-no-children": "error"
|
|
80
81
|
}
|
|
81
|
-
}
|
|
82
|
+
};
|
|
82
83
|
export {
|
|
83
84
|
react_default as default
|
|
84
85
|
};
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
plugins: "vitest"
|
|
3
|
-
rules: {
|
|
4
|
-
"vitest/consistent-each-for": "error";
|
|
5
|
-
"vitest/hoisted-apis-on-top": "error";
|
|
6
|
-
"vitest/no-conditional-tests": "error";
|
|
7
|
-
"vitest/no-import-node-test": "error";
|
|
8
|
-
"vitest/no-importing-vitest-globals": "error";
|
|
9
|
-
"vitest/no-unneeded-async-expect-function": "error";
|
|
10
|
-
"vitest/prefer-called-once": "error";
|
|
11
|
-
"vitest/prefer-called-
|
|
12
|
-
"vitest/prefer-
|
|
13
|
-
"vitest/prefer-
|
|
14
|
-
"vitest/prefer-
|
|
15
|
-
"vitest/prefer-
|
|
16
|
-
"vitest/prefer-
|
|
17
|
-
"vitest/prefer-to-be-
|
|
18
|
-
"vitest/require-
|
|
2
|
+
readonly plugins: readonly ["vitest"];
|
|
3
|
+
readonly rules: {
|
|
4
|
+
readonly "vitest/consistent-each-for": "error";
|
|
5
|
+
readonly "vitest/hoisted-apis-on-top": "error";
|
|
6
|
+
readonly "vitest/no-conditional-tests": "error";
|
|
7
|
+
readonly "vitest/no-import-node-test": "error";
|
|
8
|
+
readonly "vitest/no-importing-vitest-globals": "error";
|
|
9
|
+
readonly "vitest/no-unneeded-async-expect-function": "error";
|
|
10
|
+
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
11
|
+
readonly "vitest/prefer-called-once": "error";
|
|
12
|
+
readonly "vitest/prefer-called-times": "error";
|
|
13
|
+
readonly "vitest/prefer-describe-function-title": "error";
|
|
14
|
+
readonly "vitest/prefer-expect-type-of": "error";
|
|
15
|
+
readonly "vitest/prefer-import-in-mock": "error";
|
|
16
|
+
readonly "vitest/prefer-strict-boolean-matchers": "error";
|
|
17
|
+
readonly "vitest/prefer-to-be-object": "error";
|
|
18
|
+
readonly "vitest/require-awaited-expect-poll": "error";
|
|
19
|
+
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
20
|
+
readonly "vitest/require-mock-type-parameters": "error";
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
23
|
export { _default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// presets/lint/vitest.ts
|
|
2
|
-
|
|
3
|
-
var vitest_default = defineConfig({
|
|
2
|
+
var vitest_default = {
|
|
4
3
|
plugins: ["vitest"],
|
|
5
4
|
rules: {
|
|
6
5
|
"vitest/consistent-each-for": "error",
|
|
@@ -9,17 +8,19 @@ var vitest_default = defineConfig({
|
|
|
9
8
|
"vitest/no-import-node-test": "error",
|
|
10
9
|
"vitest/no-importing-vitest-globals": "error",
|
|
11
10
|
"vitest/no-unneeded-async-expect-function": "error",
|
|
11
|
+
"vitest/prefer-called-exactly-once-with": "error",
|
|
12
12
|
"vitest/prefer-called-once": "error",
|
|
13
13
|
"vitest/prefer-called-times": "error",
|
|
14
14
|
"vitest/prefer-describe-function-title": "error",
|
|
15
15
|
"vitest/prefer-expect-type-of": "error",
|
|
16
16
|
"vitest/prefer-import-in-mock": "error",
|
|
17
|
-
"vitest/prefer-
|
|
17
|
+
"vitest/prefer-strict-boolean-matchers": "error",
|
|
18
18
|
"vitest/prefer-to-be-object": "error",
|
|
19
|
-
"vitest/
|
|
20
|
-
"vitest/require-local-test-context-for-concurrent-snapshots": "error"
|
|
19
|
+
"vitest/require-awaited-expect-poll": "error",
|
|
20
|
+
"vitest/require-local-test-context-for-concurrent-snapshots": "error",
|
|
21
|
+
"vitest/require-mock-type-parameters": "error"
|
|
21
22
|
}
|
|
22
|
-
}
|
|
23
|
+
};
|
|
23
24
|
export {
|
|
24
25
|
vitest_default as default
|
|
25
26
|
};
|