@pawover/eslint-rules 0.0.0-beta.1 → 0.0.0-beta.11

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.
@@ -0,0 +1,11 @@
1
+ export default {
2
+ "imports/consistent-type-specifier-style": [2, "prefer-top-level"],
3
+ "imports/exports-last": 0,
4
+ "imports/first": 2,
5
+ "imports/newline-after-import": [2, { count: 1 }],
6
+ "imports/no-default-export": 0,
7
+ "imports/no-duplicates": 2,
8
+ "imports/no-mutable-exports": 2,
9
+ "imports/no-named-default": 2,
10
+ "imports/prefer-default-export": 0,
11
+ };
@@ -1,91 +1,97 @@
1
1
  export default {
2
- "react/jsx-key-before-spread": 1,
3
- "react/jsx-no-comment-textnodes": 1,
4
- "react/jsx-no-duplicate-props": 1,
5
- "react/jsx-no-iife": 1,
6
- "react/jsx-no-undef": 0,
7
- "react/jsx-shorthand-boolean": 1,
8
- "react/jsx-shorthand-fragment": 1,
9
- "react/jsx-uses-react": 1,
10
- "react/jsx-uses-vars": 1,
11
- "react/no-access-state-in-setstate": 2,
12
- "react/no-array-index-key": 1,
13
- "react/no-children-count": 2,
14
- "react/no-children-for-each": 2,
15
- "react/no-children-map": 2,
16
- "react/no-children-only": 2,
17
- "react/no-children-prop": 2,
18
- "react/no-children-to-array": 2,
19
- "react/no-class-component": 2,
20
- "react/no-clone-element": 2,
21
- "react/no-component-will-mount": 2,
22
- "react/no-component-will-receive-props": 2,
23
- "react/no-component-will-update": 2,
24
- "react/no-context-provider": 2,
25
- "react/no-create-ref": 2,
26
- "react/no-default-props": 2,
27
- "react/no-direct-mutation-state": 2,
28
- "react/no-duplicate-key": 2,
29
- "react/no-forward-ref": 2,
30
- "react/no-implicit-key": 2,
31
- "react/no-leaked-conditional-rendering": 2,
32
- "react/no-missing-component-display-name": 2,
33
- "react/no-missing-context-display-name": 2,
34
- "react/no-missing-key": 2,
35
- "react/no-misused-capture-owner-stack": 2,
36
- "react/no-nested-component-definitions": 2,
37
- "react/no-nested-lazy-component-declarations": 2,
38
- "react/no-prop-types": 2,
39
- "react/no-redundant-should-component-update": 2,
40
- "react/no-set-state-in-component-did-mount": 2,
41
- "react/no-set-state-in-component-did-update": 2,
42
- "react/no-set-state-in-component-will-update": 2,
43
- "react/no-string-refs": 2,
44
- "react/no-unnecessary-key": 1,
45
- "react/no-unnecessary-use-callback": 1,
46
- "react/no-unnecessary-use-memo": 1,
47
- "react/no-unnecessary-use-prefix": 1,
48
- "react/no-unsafe-component-will-mount": 2,
49
- "react/no-unsafe-component-will-receive-props": 2,
50
- "react/no-unsafe-component-will-update": 2,
51
- "react/no-unstable-context-value": 2,
52
- "react/no-unstable-default-props": 2,
53
- "react/no-unused-class-component-members": 2,
54
- "react/no-unused-props": 2,
55
- "react/no-unused-state": 2,
56
- "react/no-use-context": 2,
57
- "react/no-useless-forward-ref": 2,
58
- "react/no-useless-fragment": 2,
59
- "react/prefer-destructuring-assignment": 2,
60
- "react/prefer-namespace-import": 1,
61
- "react/prefer-read-only-props": 2,
62
- "react/prefer-use-state-lazy-initialization": 2,
2
+ "react-x/jsx-dollar": 0,
3
+ "react-x/jsx-key-before-spread": 1,
4
+ "react-x/jsx-no-comment-textnodes": 1,
5
+ "react-x/jsx-shorthand-boolean": 2,
6
+ "react-x/jsx-shorthand-fragment": 0,
7
+ "react-x/component-hook-factories": 2,
8
+ "react-x/error-boundaries": 2,
9
+ "react-x/exhaustive-deps": 1,
10
+ "react-x/immutability": 2,
11
+ "react-x/no-access-state-in-setstate": 2,
12
+ "react-x/no-array-index-key": 1,
13
+ "react-x/no-children-count": 1,
14
+ "react-x/no-children-for-each": 1,
15
+ "react-x/no-children-map": 1,
16
+ "react-x/no-children-only": 1,
17
+ "react-x/no-children-prop": 0,
18
+ "react-x/no-children-to-array": 1,
19
+ "react-x/no-class-component": 2,
20
+ "react-x/no-clone-element": 1,
21
+ "react-x/no-component-will-mount": 2,
22
+ "react-x/no-component-will-receive-props": 2,
23
+ "react-x/no-component-will-update": 2,
24
+ "react-x/no-context-provider": 2,
25
+ "react-x/no-create-ref": 2,
26
+ "react-x/no-direct-mutation-state": 2,
27
+ "react-x/no-duplicate-key": 1,
28
+ "react-x/no-forward-ref": 2,
29
+ "react-x/no-implicit-children": 1,
30
+ "react-x/no-implicit-key": 1,
31
+ "react-x/no-implicit-ref": 1,
32
+ "react-x/no-leaked-conditional-rendering": 2,
33
+ "react-x/no-missing-component-display-name": 2,
34
+ "react-x/no-missing-context-display-name": 2,
35
+ "react-x/no-missing-key": 2,
36
+ "react-x/no-misused-capture-owner-stack": 2,
37
+ "react-x/no-nested-component-definitions": 2,
38
+ "react-x/no-nested-lazy-component-declarations": 2,
39
+ "react-x/no-redundant-should-component-update": 2,
40
+ "react-x/no-set-state-in-component-did-mount": 2,
41
+ "react-x/no-set-state-in-component-did-update": 2,
42
+ "react-x/no-set-state-in-component-will-update": 2,
43
+ "react-x/no-unnecessary-use-callback": 2,
44
+ "react-x/no-unnecessary-use-memo": 2,
45
+ "react-x/no-unnecessary-use-prefix": 2,
46
+ "react-x/no-unsafe-component-will-mount": 2,
47
+ "react-x/no-unsafe-component-will-receive-props": 2,
48
+ "react-x/no-unsafe-component-will-update": 2,
49
+ "react-x/no-unstable-context-value": 2,
50
+ "react-x/no-unstable-default-props": 2,
51
+ "react-x/no-unused-class-component-members": 1,
52
+ "react-x/no-unused-props": 2,
53
+ "react-x/no-unused-state": 2,
54
+ "react-x/no-use-context": 2,
55
+ "react-x/no-useless-fragment": 2,
56
+ "react-x/prefer-destructuring-assignment": 2,
57
+ "react-x/prefer-namespace-import": 0,
58
+ "react-x/purity": 1,
59
+ "react-x/refs": 2,
60
+ "react-x/rules-of-hooks": 2,
61
+ "react-x/set-state-in-effect": 2,
62
+ "react-x/set-state-in-render": 2,
63
+ "react-x/unsupported-syntax": 2,
64
+ "react-x/use-memo": 2,
65
+ "react-x/use-state": 2,
66
+ "react-rsc/function-definition": 0,
63
67
  "react-dom/no-dangerously-set-innerhtml": 1,
64
68
  "react-dom/no-dangerously-set-innerhtml-with-children": 2,
65
69
  "react-dom/no-find-dom-node": 2,
66
70
  "react-dom/no-flush-sync": 2,
67
71
  "react-dom/no-hydrate": 2,
68
- "react-dom/no-missing-button-type": 2,
69
- "react-dom/no-missing-iframe-sandbox": 2,
72
+ "react-dom/no-missing-button-type": 1,
73
+ "react-dom/no-missing-iframe-sandbox": 1,
70
74
  "react-dom/no-namespace": 2,
71
75
  "react-dom/no-render": 2,
72
76
  "react-dom/no-render-return-value": 2,
73
- "react-dom/no-script-url": 2,
77
+ "react-dom/no-script-url": 1,
74
78
  "react-dom/no-string-style-prop": 2,
75
79
  "react-dom/no-unknown-property": 2,
76
- "react-dom/no-unsafe-iframe-sandbox": 2,
77
- "react-dom/no-unsafe-target-blank": 2,
80
+ "react-dom/no-unsafe-iframe-sandbox": 1,
81
+ "react-dom/no-unsafe-target-blank": 1,
78
82
  "react-dom/no-use-form-state": 2,
79
83
  "react-dom/no-void-elements-with-children": 2,
80
- "react-dom/prefer-namespace-import": 1,
84
+ "react-dom/prefer-namespace-import": 0,
81
85
  "react-web-api/no-leaked-event-listener": 2,
82
86
  "react-web-api/no-leaked-interval": 2,
83
87
  "react-web-api/no-leaked-resize-observer": 2,
84
88
  "react-web-api/no-leaked-timeout": 2,
85
- "react-hooks-extra/no-direct-set-state-in-use-effect": 1,
86
- "react-naming-convention/component-name": 2,
87
89
  "react-naming-convention/context-name": 2,
88
- "react-naming-convention/filename": [1, "camelCase"],
89
- "react-naming-convention/filename-extension": 0,
90
- "react-naming-convention/use-state": 2,
90
+ "react-naming-convention/id-name": 2,
91
+ "react-naming-convention/ref-name": 2,
92
+ "react-hooks/config": 2,
93
+ "react-hooks/gating": 2,
94
+ "react-hooks/globals": 2,
95
+ "react-hooks/incompatible-library": 2,
96
+ "react-hooks/preserve-manual-memoization": 2,
91
97
  };
@@ -1,7 +1,7 @@
1
1
  import preset from "./preset.js";
2
2
  export default {
3
3
  "stylistic/array-bracket-newline": [2, "consistent"],
4
- "stylistic/array-bracket-spacing": 2,
4
+ "stylistic/array-bracket-spacing": [2, "never"],
5
5
  "stylistic/array-element-newline": [2, "consistent"],
6
6
  "stylistic/arrow-parens": 2,
7
7
  "stylistic/arrow-spacing": 2,
@@ -9,11 +9,11 @@ export default {
9
9
  "stylistic/brace-style": 2,
10
10
  "stylistic/comma-dangle": [2, "always-multiline"],
11
11
  "stylistic/comma-spacing": 2,
12
- "stylistic/comma-style": 2,
12
+ "stylistic/comma-style": 0,
13
13
  "stylistic/computed-property-spacing": 2,
14
14
  "stylistic/curly-newline": 2,
15
15
  "stylistic/dot-location": 0,
16
- "stylistic/eol-last": 2,
16
+ "stylistic/eol-last": 0,
17
17
  "stylistic/function-call-argument-newline": [2, "consistent"],
18
18
  "stylistic/function-call-spacing": 2,
19
19
  "stylistic/function-paren-newline": [2, "multiline-arguments"],
@@ -24,34 +24,21 @@ export default {
24
24
  "stylistic/jsx-child-element-spacing": 0,
25
25
  "stylistic/jsx-closing-bracket-location": 2,
26
26
  "stylistic/jsx-closing-tag-location": 2,
27
- "stylistic/jsx-curly-brace-presence": 2,
27
+ "stylistic/jsx-curly-brace-presence": 0,
28
28
  "stylistic/jsx-curly-newline": 2,
29
29
  "stylistic/jsx-curly-spacing": 2,
30
30
  "stylistic/jsx-equals-spacing": 2,
31
- "stylistic/jsx-first-prop-new-line": 2,
31
+ "stylistic/jsx-first-prop-new-line": [2, "multiprop"],
32
32
  "stylistic/jsx-function-call-newline": 2,
33
33
  "stylistic/jsx-indent-props": [2, preset.indent],
34
34
  "stylistic/jsx-max-props-per-line": 2,
35
35
  "stylistic/jsx-newline": 0,
36
36
  "stylistic/jsx-one-expression-per-line": [2, { allow: "single-child" }],
37
- "stylistic/jsx-pascal-case": [2, { allowNamespace: true }],
37
+ "stylistic/jsx-pascal-case": [2, { allowNamespace: true, allowAllCaps: true }],
38
38
  "stylistic/jsx-quotes": 2,
39
39
  "stylistic/jsx-self-closing-comp": 2,
40
- "stylistic/jsx-sort-props": 0,
41
40
  "stylistic/jsx-tag-spacing": [2, { beforeClosing: "never" }],
42
- "stylistic/jsx-wrap-multilines": [
43
- 2,
44
- {
45
- declaration: "parens-new-line",
46
- assignment: "parens-new-line",
47
- return: "parens-new-line",
48
- arrow: "parens-new-line",
49
- condition: "parens-new-line",
50
- logical: "parens-new-line",
51
- prop: "ignore",
52
- propertyValue: "parens-new-line",
53
- },
54
- ],
41
+ "stylistic/jsx-wrap-multilines": [2, { declaration: "parens-new-line", assignment: "parens-new-line", return: "parens-new-line", arrow: "parens-new-line", condition: "parens-new-line", logical: "parens-new-line", prop: "ignore", propertyValue: "parens-new-line" }],
55
42
  "stylistic/key-spacing": 2,
56
43
  "stylistic/keyword-spacing": 2,
57
44
  "stylistic/line-comment-position": 0,
@@ -70,18 +57,18 @@ export default {
70
57
  "stylistic/no-extra-semi": 2,
71
58
  "stylistic/no-floating-decimal": 2,
72
59
  "stylistic/no-mixed-operators": 0,
73
- "stylistic/no-mixed-spaces-and-tabs": 0,
74
- "stylistic/no-multi-spaces": 2,
60
+ "stylistic/no-mixed-spaces-and-tabs": 2,
61
+ "stylistic/no-multi-spaces": [2, { exceptions: { Property: false, ImportAttribute: false } }],
75
62
  "stylistic/no-multiple-empty-lines": [2, { max: 2, maxEOF: 1, maxBOF: 0 }],
76
63
  "stylistic/no-tabs": 0,
77
64
  "stylistic/no-trailing-spaces": 2,
78
65
  "stylistic/no-whitespace-before-property": 2,
79
- "stylistic/nonblock-statement-body-position": 2,
80
- "stylistic/object-curly-newline": 2,
81
- "stylistic/object-curly-spacing": [2, "always"],
82
- "stylistic/object-property-newline": [2, { allowAllPropertiesOnSameLine: true }],
83
- "stylistic/one-var-declaration-per-line": 2,
84
- "stylistic/operator-linebreak": [2, "after", { overrides: { "?": "ignore", ":": "ignore", "|": "before" } }],
66
+ "stylistic/nonblock-statement-body-position": 0,
67
+ "stylistic/object-curly-newline": [2, { consistent: true }],
68
+ "stylistic/object-curly-spacing": [2, "always", { emptyObjects: "never" }],
69
+ "stylistic/object-property-newline": 0,
70
+ "stylistic/one-var-declaration-per-line": 0,
71
+ "stylistic/operator-linebreak": [2, "before"],
85
72
  "stylistic/padded-blocks": 0,
86
73
  "stylistic/padding-line-between-statements": [
87
74
  2,
@@ -97,7 +84,7 @@ export default {
97
84
  "stylistic/semi-spacing": 2,
98
85
  "stylistic/semi-style": 2,
99
86
  "stylistic/space-before-blocks": 2,
100
- "stylistic/space-before-function-paren": [2, { anonymous: "always", named: "never", asyncArrow: "always", catch: "always" }],
87
+ "stylistic/space-before-function-paren": [2, { anonymous: "always", named: "always", asyncArrow: "always", catch: "always" }],
101
88
  "stylistic/space-in-parens": 2,
102
89
  "stylistic/space-infix-ops": 2,
103
90
  "stylistic/space-unary-ops": 2,
@@ -109,6 +96,6 @@ export default {
109
96
  "stylistic/type-generic-spacing": 2,
110
97
  "stylistic/type-named-tuple-spacing": 2,
111
98
  "stylistic/wrap-iife": 2,
112
- "stylistic/wrap-regex": 2,
113
- "stylistic/yield-star-spacing": 2,
99
+ "stylistic/wrap-regex": 0,
100
+ "stylistic/yield-star-spacing": 0,
114
101
  };
@@ -109,7 +109,7 @@ export default {
109
109
  "ts/no-useless-empty-export": 0,
110
110
  "ts/no-wrapper-object-types": 2,
111
111
  "ts/non-nullable-type-assertion-style": 0,
112
- "ts/only-throw-error": 0,
112
+ "ts/only-throw-error": [2, { allow: [{ from: "package", package: "@tanstack/router-core", name: "Redirect" }] }],
113
113
  "ts/parameter-properties": 0,
114
114
  "ts/prefer-as-const": 0,
115
115
  "ts/prefer-destructuring": 0,
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import javascriptRules from "./core.javascript.js";
2
2
  import typescriptRules from "./core.typescript.js";
3
3
  import antfuRules from "./core.antfu.js";
4
+ import importsRules from "./core.imports.js";
4
5
  import reactRules from "./core.react.js";
5
6
  import stylisticRules from "./core.stylistic.js";
6
7
  import vueRules from "./core.vue.js";
@@ -10,6 +11,7 @@ const react = reactRules;
10
11
  const vue = vueRules;
11
12
  const stylistic = stylisticRules;
12
13
  const antfu = antfuRules;
14
+ const imports = importsRules;
13
15
  export default {
14
16
  javascript,
15
17
  typescript,
@@ -17,4 +19,5 @@ export default {
17
19
  vue,
18
20
  stylistic,
19
21
  antfu,
22
+ imports,
20
23
  };
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ "imports/consistent-type-specifier-style": (string | number)[];
3
+ "imports/exports-last": number;
4
+ "imports/first": number;
5
+ "imports/newline-after-import": (number | {
6
+ count: number;
7
+ })[];
8
+ "imports/no-default-export": number;
9
+ "imports/no-duplicates": number;
10
+ "imports/no-mutable-exports": number;
11
+ "imports/no-named-default": number;
12
+ "imports/prefer-default-export": number;
13
+ };
14
+ export default _default;
15
+ //# sourceMappingURL=core.imports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.imports.d.ts","sourceRoot":"","sources":["../../src/core.imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wBAUE"}
@@ -1,65 +1,69 @@
1
1
  declare const _default: {
2
- "react/jsx-key-before-spread": number;
3
- "react/jsx-no-comment-textnodes": number;
4
- "react/jsx-no-duplicate-props": number;
5
- "react/jsx-no-iife": number;
6
- "react/jsx-no-undef": number;
7
- "react/jsx-shorthand-boolean": number;
8
- "react/jsx-shorthand-fragment": number;
9
- "react/jsx-uses-react": number;
10
- "react/jsx-uses-vars": number;
11
- "react/no-access-state-in-setstate": number;
12
- "react/no-array-index-key": number;
13
- "react/no-children-count": number;
14
- "react/no-children-for-each": number;
15
- "react/no-children-map": number;
16
- "react/no-children-only": number;
17
- "react/no-children-prop": number;
18
- "react/no-children-to-array": number;
19
- "react/no-class-component": number;
20
- "react/no-clone-element": number;
21
- "react/no-component-will-mount": number;
22
- "react/no-component-will-receive-props": number;
23
- "react/no-component-will-update": number;
24
- "react/no-context-provider": number;
25
- "react/no-create-ref": number;
26
- "react/no-default-props": number;
27
- "react/no-direct-mutation-state": number;
28
- "react/no-duplicate-key": number;
29
- "react/no-forward-ref": number;
30
- "react/no-implicit-key": number;
31
- "react/no-leaked-conditional-rendering": number;
32
- "react/no-missing-component-display-name": number;
33
- "react/no-missing-context-display-name": number;
34
- "react/no-missing-key": number;
35
- "react/no-misused-capture-owner-stack": number;
36
- "react/no-nested-component-definitions": number;
37
- "react/no-nested-lazy-component-declarations": number;
38
- "react/no-prop-types": number;
39
- "react/no-redundant-should-component-update": number;
40
- "react/no-set-state-in-component-did-mount": number;
41
- "react/no-set-state-in-component-did-update": number;
42
- "react/no-set-state-in-component-will-update": number;
43
- "react/no-string-refs": number;
44
- "react/no-unnecessary-key": number;
45
- "react/no-unnecessary-use-callback": number;
46
- "react/no-unnecessary-use-memo": number;
47
- "react/no-unnecessary-use-prefix": number;
48
- "react/no-unsafe-component-will-mount": number;
49
- "react/no-unsafe-component-will-receive-props": number;
50
- "react/no-unsafe-component-will-update": number;
51
- "react/no-unstable-context-value": number;
52
- "react/no-unstable-default-props": number;
53
- "react/no-unused-class-component-members": number;
54
- "react/no-unused-props": number;
55
- "react/no-unused-state": number;
56
- "react/no-use-context": number;
57
- "react/no-useless-forward-ref": number;
58
- "react/no-useless-fragment": number;
59
- "react/prefer-destructuring-assignment": number;
60
- "react/prefer-namespace-import": number;
61
- "react/prefer-read-only-props": number;
62
- "react/prefer-use-state-lazy-initialization": number;
2
+ "react-x/jsx-dollar": number;
3
+ "react-x/jsx-key-before-spread": number;
4
+ "react-x/jsx-no-comment-textnodes": number;
5
+ "react-x/jsx-shorthand-boolean": number;
6
+ "react-x/jsx-shorthand-fragment": number;
7
+ "react-x/component-hook-factories": number;
8
+ "react-x/error-boundaries": number;
9
+ "react-x/exhaustive-deps": number;
10
+ "react-x/immutability": number;
11
+ "react-x/no-access-state-in-setstate": number;
12
+ "react-x/no-array-index-key": number;
13
+ "react-x/no-children-count": number;
14
+ "react-x/no-children-for-each": number;
15
+ "react-x/no-children-map": number;
16
+ "react-x/no-children-only": number;
17
+ "react-x/no-children-prop": number;
18
+ "react-x/no-children-to-array": number;
19
+ "react-x/no-class-component": number;
20
+ "react-x/no-clone-element": number;
21
+ "react-x/no-component-will-mount": number;
22
+ "react-x/no-component-will-receive-props": number;
23
+ "react-x/no-component-will-update": number;
24
+ "react-x/no-context-provider": number;
25
+ "react-x/no-create-ref": number;
26
+ "react-x/no-direct-mutation-state": number;
27
+ "react-x/no-duplicate-key": number;
28
+ "react-x/no-forward-ref": number;
29
+ "react-x/no-implicit-children": number;
30
+ "react-x/no-implicit-key": number;
31
+ "react-x/no-implicit-ref": number;
32
+ "react-x/no-leaked-conditional-rendering": number;
33
+ "react-x/no-missing-component-display-name": number;
34
+ "react-x/no-missing-context-display-name": number;
35
+ "react-x/no-missing-key": number;
36
+ "react-x/no-misused-capture-owner-stack": number;
37
+ "react-x/no-nested-component-definitions": number;
38
+ "react-x/no-nested-lazy-component-declarations": number;
39
+ "react-x/no-redundant-should-component-update": number;
40
+ "react-x/no-set-state-in-component-did-mount": number;
41
+ "react-x/no-set-state-in-component-did-update": number;
42
+ "react-x/no-set-state-in-component-will-update": number;
43
+ "react-x/no-unnecessary-use-callback": number;
44
+ "react-x/no-unnecessary-use-memo": number;
45
+ "react-x/no-unnecessary-use-prefix": number;
46
+ "react-x/no-unsafe-component-will-mount": number;
47
+ "react-x/no-unsafe-component-will-receive-props": number;
48
+ "react-x/no-unsafe-component-will-update": number;
49
+ "react-x/no-unstable-context-value": number;
50
+ "react-x/no-unstable-default-props": number;
51
+ "react-x/no-unused-class-component-members": number;
52
+ "react-x/no-unused-props": number;
53
+ "react-x/no-unused-state": number;
54
+ "react-x/no-use-context": number;
55
+ "react-x/no-useless-fragment": number;
56
+ "react-x/prefer-destructuring-assignment": number;
57
+ "react-x/prefer-namespace-import": number;
58
+ "react-x/purity": number;
59
+ "react-x/refs": number;
60
+ "react-x/rules-of-hooks": number;
61
+ "react-x/set-state-in-effect": number;
62
+ "react-x/set-state-in-render": number;
63
+ "react-x/unsupported-syntax": number;
64
+ "react-x/use-memo": number;
65
+ "react-x/use-state": number;
66
+ "react-rsc/function-definition": number;
63
67
  "react-dom/no-dangerously-set-innerhtml": number;
64
68
  "react-dom/no-dangerously-set-innerhtml-with-children": number;
65
69
  "react-dom/no-find-dom-node": number;
@@ -82,12 +86,14 @@ declare const _default: {
82
86
  "react-web-api/no-leaked-interval": number;
83
87
  "react-web-api/no-leaked-resize-observer": number;
84
88
  "react-web-api/no-leaked-timeout": number;
85
- "react-hooks-extra/no-direct-set-state-in-use-effect": number;
86
- "react-naming-convention/component-name": number;
87
89
  "react-naming-convention/context-name": number;
88
- "react-naming-convention/filename": (string | number)[];
89
- "react-naming-convention/filename-extension": number;
90
- "react-naming-convention/use-state": number;
90
+ "react-naming-convention/id-name": number;
91
+ "react-naming-convention/ref-name": number;
92
+ "react-hooks/config": number;
93
+ "react-hooks/gating": number;
94
+ "react-hooks/globals": number;
95
+ "react-hooks/incompatible-library": number;
96
+ "react-hooks/preserve-manual-memoization": number;
91
97
  };
92
98
  export default _default;
93
99
  //# sourceMappingURL=core.react.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.react.d.ts","sourceRoot":"","sources":["../../src/core.react.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA0FE"}
1
+ {"version":3,"file":"core.react.d.ts","sourceRoot":"","sources":["../../src/core.react.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAqGE"}
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "stylistic/array-bracket-newline": (string | number)[];
3
- "stylistic/array-bracket-spacing": number;
3
+ "stylistic/array-bracket-spacing": (string | number)[];
4
4
  "stylistic/array-element-newline": (string | number)[];
5
5
  "stylistic/arrow-parens": number;
6
6
  "stylistic/arrow-spacing": number;
@@ -27,7 +27,7 @@ declare const _default: {
27
27
  "stylistic/jsx-curly-newline": number;
28
28
  "stylistic/jsx-curly-spacing": number;
29
29
  "stylistic/jsx-equals-spacing": number;
30
- "stylistic/jsx-first-prop-new-line": number;
30
+ "stylistic/jsx-first-prop-new-line": (string | number)[];
31
31
  "stylistic/jsx-function-call-newline": number;
32
32
  "stylistic/jsx-indent-props": number[];
33
33
  "stylistic/jsx-max-props-per-line": number;
@@ -37,10 +37,10 @@ declare const _default: {
37
37
  })[];
38
38
  "stylistic/jsx-pascal-case": (number | {
39
39
  allowNamespace: boolean;
40
+ allowAllCaps: boolean;
40
41
  })[];
41
42
  "stylistic/jsx-quotes": number;
42
43
  "stylistic/jsx-self-closing-comp": number;
43
- "stylistic/jsx-sort-props": number;
44
44
  "stylistic/jsx-tag-spacing": (number | {
45
45
  beforeClosing: string;
46
46
  })[];
@@ -73,7 +73,12 @@ declare const _default: {
73
73
  "stylistic/no-floating-decimal": number;
74
74
  "stylistic/no-mixed-operators": number;
75
75
  "stylistic/no-mixed-spaces-and-tabs": number;
76
- "stylistic/no-multi-spaces": number;
76
+ "stylistic/no-multi-spaces": (number | {
77
+ exceptions: {
78
+ Property: boolean;
79
+ ImportAttribute: boolean;
80
+ };
81
+ })[];
77
82
  "stylistic/no-multiple-empty-lines": (number | {
78
83
  max: number;
79
84
  maxEOF: number;
@@ -83,19 +88,15 @@ declare const _default: {
83
88
  "stylistic/no-trailing-spaces": number;
84
89
  "stylistic/no-whitespace-before-property": number;
85
90
  "stylistic/nonblock-statement-body-position": number;
86
- "stylistic/object-curly-newline": number;
87
- "stylistic/object-curly-spacing": (string | number)[];
88
- "stylistic/object-property-newline": (number | {
89
- allowAllPropertiesOnSameLine: boolean;
91
+ "stylistic/object-curly-newline": (number | {
92
+ consistent: boolean;
90
93
  })[];
91
- "stylistic/one-var-declaration-per-line": number;
92
- "stylistic/operator-linebreak": (string | number | {
93
- overrides: {
94
- "?": string;
95
- ":": string;
96
- "|": string;
97
- };
94
+ "stylistic/object-curly-spacing": (string | number | {
95
+ emptyObjects: string;
98
96
  })[];
97
+ "stylistic/object-property-newline": number;
98
+ "stylistic/one-var-declaration-per-line": number;
99
+ "stylistic/operator-linebreak": (string | number)[];
99
100
  "stylistic/padded-blocks": number;
100
101
  "stylistic/padding-line-between-statements": (number | {
101
102
  blankLine: string;
@@ -1 +1 @@
1
- {"version":3,"file":"core.stylistic.d.ts","sourceRoot":"","sources":["../../src/core.stylistic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAgHE"}
1
+ {"version":3,"file":"core.stylistic.d.ts","sourceRoot":"","sources":["../../src/core.stylistic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAmGE"}
@@ -144,7 +144,13 @@ declare const _default: {
144
144
  "ts/no-useless-empty-export": number;
145
145
  "ts/no-wrapper-object-types": number;
146
146
  "ts/non-nullable-type-assertion-style": number;
147
- "ts/only-throw-error": number;
147
+ "ts/only-throw-error": (number | {
148
+ allow: {
149
+ from: string;
150
+ package: string;
151
+ name: string;
152
+ }[];
153
+ })[];
148
154
  "ts/parameter-properties": number;
149
155
  "ts/prefer-as-const": number;
150
156
  "ts/prefer-destructuring": number;
@@ -1 +1 @@
1
- {"version":3,"file":"core.typescript.d.ts","sourceRoot":"","sources":["../../src/core.typescript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAiJE"}
1
+ {"version":3,"file":"core.typescript.d.ts","sourceRoot":"","sources":["../../src/core.typescript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAiJE"}
@@ -5,10 +5,11 @@ export type RuleConfig = Severity | [Severity];
5
5
  declare const _default: {
6
6
  javascript: Record<"array-callback-return" | "constructor-super" | "for-direction" | "getter-return" | "no-async-promise-executor" | "no-await-in-loop" | "no-class-assign" | "no-compare-neg-zero" | "no-cond-assign" | "no-const-assign" | "no-constant-binary-expression" | "no-constant-condition" | "no-constructor-return" | "no-control-regex" | "no-debugger" | "no-dupe-args" | "no-dupe-class-members" | "no-dupe-else-if" | "no-dupe-keys" | "no-duplicate-case" | "no-duplicate-imports" | "no-empty-character-class" | "no-empty-pattern" | "no-ex-assign" | "no-fallthrough" | "no-func-assign" | "no-import-assign" | "no-inner-declarations" | "no-invalid-regexp" | "no-irregular-whitespace" | "no-loss-of-precision" | "no-misleading-character-class" | "no-new-native-nonconstructor" | "no-obj-calls" | "no-promise-executor-return" | "no-prototype-builtins" | "no-self-assign" | "no-self-compare" | "no-setter-return" | "no-sparse-arrays" | "no-template-curly-in-string" | "no-this-before-super" | "no-undef" | "no-unexpected-multiline" | "no-unmodified-loop-condition" | "no-unreachable" | "no-unreachable-loop" | "no-unsafe-finally" | "no-unsafe-negation" | "no-unsafe-optional-chaining" | "no-unused-private-class-members" | "no-unused-vars" | "no-use-before-define" | "no-useless-assignment" | "no-useless-backreference" | "require-atomic-updates" | "use-isnan" | "valid-typeof" | "accessor-pairs" | "arrow-body-style" | "block-scoped-var" | "camelcase" | "capitalized-comments" | "class-methods-use-this" | "complexity" | "consistent-return" | "consistent-this" | "curly" | "default-case" | "default-case-last" | "default-param-last" | "dot-notation" | "eqeqeq" | "func-name-matching" | "func-names" | "func-style" | "grouped-accessor-pairs" | "guard-for-in" | "id-denylist" | "id-length" | "id-match" | "init-declarations" | "logical-assignment-operators" | "max-classes-per-file" | "max-depth" | "max-lines" | "max-lines-per-function" | "max-nested-callbacks" | "max-params" | "max-statements" | "new-cap" | "no-alert" | "no-array-constructor" | "no-bitwise" | "no-caller" | "no-case-declarations" | "no-console" | "no-continue" | "no-delete-var" | "no-div-regex" | "no-else-return" | "no-empty" | "no-empty-function" | "no-empty-static-block" | "no-eq-null" | "no-eval" | "no-extend-native" | "no-extra-bind" | "no-extra-boolean-cast" | "no-extra-label" | "no-global-assign" | "no-implicit-coercion" | "no-implicit-globals" | "no-implied-eval" | "no-inline-comments" | "no-invalid-this" | "no-iterator" | "no-label-var" | "no-labels" | "no-lone-blocks" | "no-lonely-if" | "no-loop-func" | "no-magic-numbers" | "no-multi-assign" | "no-multi-str" | "no-negated-condition" | "no-nested-ternary" | "no-new" | "no-new-func" | "no-new-wrappers" | "no-nonoctal-decimal-escape" | "no-object-constructor" | "no-octal" | "no-octal-escape" | "no-param-reassign" | "no-plusplus" | "no-proto" | "no-redeclare" | "no-regex-spaces" | "no-restricted-exports" | "no-restricted-globals" | "no-restricted-imports" | "no-restricted-properties" | "no-restricted-syntax" | "no-return-assign" | "no-script-url" | "no-sequences" | "no-shadow" | "no-shadow-restricted-names" | "no-ternary" | "no-throw-literal" | "no-undef-init" | "no-undefined" | "no-underscore-dangle" | "no-unneeded-ternary" | "no-unused-expressions" | "no-unused-labels" | "no-useless-call" | "no-useless-catch" | "no-useless-computed-key" | "no-useless-concat" | "no-useless-constructor" | "no-useless-escape" | "no-useless-rename" | "no-useless-return" | "no-var" | "no-void" | "no-warning-comments" | "no-with" | "object-shorthand" | "one-var" | "operator-assignment" | "prefer-arrow-callback" | "prefer-const" | "prefer-destructuring" | "prefer-exponentiation-operator" | "prefer-named-capture-group" | "prefer-numeric-literals" | "prefer-object-has-own" | "prefer-object-spread" | "prefer-promise-reject-errors" | "prefer-regex-literals" | "prefer-rest-params" | "prefer-spread" | "prefer-template" | "radix" | "require-await" | "require-unicode-regexp" | "require-yield" | "sort-imports" | "sort-keys" | "sort-vars" | "strict" | "symbol-description" | "vars-on-top" | "yoda", RuleConfig>;
7
7
  typescript: Record<"no-dupe-class-members" | "no-unused-vars" | "no-use-before-define" | "class-methods-use-this" | "default-param-last" | "dot-notation" | "init-declarations" | "max-params" | "no-array-constructor" | "no-empty-function" | "no-implied-eval" | "no-loop-func" | "no-magic-numbers" | "no-redeclare" | "no-restricted-imports" | "no-shadow" | "no-unused-expressions" | "no-useless-constructor" | "prefer-destructuring" | "prefer-promise-reject-errors" | "require-await" | "ts/adjacent-overload-signatures" | "ts/array-type" | "ts/await-thenable" | "ts/ban-ts-comment" | "ts/ban-tslint-comment" | "ts/class-literal-property-style" | "ts/class-methods-use-this" | "ts/consistent-generic-constructors" | "ts/consistent-indexed-object-style" | "ts/consistent-type-assertions" | "ts/consistent-type-definitions" | "ts/consistent-type-exports" | "ts/consistent-type-imports" | "ts/default-param-last" | "ts/dot-notation" | "ts/explicit-function-return-type" | "ts/explicit-member-accessibility" | "ts/explicit-module-boundary-types" | "ts/init-declarations" | "ts/max-params" | "ts/member-ordering" | "ts/method-signature-style" | "ts/naming-convention" | "ts/no-array-constructor" | "ts/no-array-delete" | "ts/no-base-to-string" | "ts/no-confusing-non-null-assertion" | "ts/no-confusing-void-expression" | "ts/no-deprecated" | "ts/no-dupe-class-members" | "ts/no-duplicate-enum-values" | "ts/no-duplicate-type-constituents" | "ts/no-dynamic-delete" | "ts/no-empty-function" | "ts/no-empty-object-type" | "ts/no-explicit-any" | "ts/no-extra-non-null-assertion" | "ts/no-extraneous-class" | "ts/no-floating-promises" | "ts/no-for-in-array" | "ts/no-implied-eval" | "ts/no-import-type-side-effects" | "ts/no-inferrable-types" | "ts/no-invalid-void-type" | "ts/no-loop-func" | "ts/no-magic-numbers" | "ts/no-meaningless-void-operator" | "ts/no-misused-new" | "ts/no-misused-promises" | "ts/no-misused-spread" | "ts/no-mixed-enums" | "ts/no-namespace" | "ts/no-non-null-asserted-nullish-coalescing" | "ts/no-non-null-asserted-optional-chain" | "ts/no-non-null-assertion" | "ts/no-redeclare" | "ts/no-redundant-type-constituents" | "ts/no-require-imports" | "ts/no-restricted-imports" | "ts/no-restricted-types" | "ts/no-shadow" | "ts/no-this-alias" | "ts/no-unnecessary-boolean-literal-compare" | "ts/no-unnecessary-condition" | "ts/no-unnecessary-parameter-property-assignment" | "ts/no-unnecessary-qualifier" | "ts/no-unnecessary-template-expression" | "ts/no-unnecessary-type-arguments" | "ts/no-unnecessary-type-assertion" | "ts/no-unnecessary-type-constraint" | "ts/no-unnecessary-type-parameters" | "ts/no-unsafe-argument" | "ts/no-unsafe-assignment" | "ts/no-unsafe-call" | "ts/no-unsafe-declaration-merging" | "ts/no-unsafe-enum-comparison" | "ts/no-unsafe-function-type" | "ts/no-unsafe-member-access" | "ts/no-unsafe-return" | "ts/no-unsafe-type-assertion" | "ts/no-unsafe-unary-minus" | "ts/no-unused-expressions" | "ts/no-unused-vars" | "ts/no-use-before-define" | "ts/no-useless-constructor" | "ts/no-useless-empty-export" | "ts/no-wrapper-object-types" | "ts/non-nullable-type-assertion-style" | "ts/only-throw-error" | "ts/parameter-properties" | "ts/prefer-as-const" | "ts/prefer-destructuring" | "ts/prefer-enum-initializers" | "ts/prefer-find" | "ts/prefer-for-of" | "ts/prefer-function-type" | "ts/prefer-includes" | "ts/prefer-literal-enum-member" | "ts/prefer-namespace-keyword" | "ts/prefer-nullish-coalescing" | "ts/prefer-optional-chain" | "ts/prefer-promise-reject-errors" | "ts/prefer-readonly" | "ts/prefer-readonly-parameter-types" | "ts/prefer-reduce-type-parameter" | "ts/prefer-regexp-exec" | "ts/prefer-return-this-type" | "ts/prefer-string-starts-ends-with" | "ts/promise-function-async" | "ts/related-getter-setter-pairs" | "ts/require-array-sort-compare" | "ts/require-await" | "ts/restrict-plus-operands" | "ts/restrict-template-expressions" | "ts/return-await" | "ts/strict-boolean-expressions" | "ts/switch-exhaustiveness-check" | "ts/triple-slash-reference" | "ts/typedef" | "ts/unbound-method" | "ts/unified-signatures" | "ts/use-unknown-in-catch-callback-variable", RuleConfig>;
8
- react: Record<"react/jsx-key-before-spread" | "react/jsx-no-comment-textnodes" | "react/jsx-no-duplicate-props" | "react/jsx-no-iife" | "react/jsx-no-undef" | "react/jsx-shorthand-boolean" | "react/jsx-shorthand-fragment" | "react/jsx-uses-react" | "react/jsx-uses-vars" | "react/no-access-state-in-setstate" | "react/no-array-index-key" | "react/no-children-count" | "react/no-children-for-each" | "react/no-children-map" | "react/no-children-only" | "react/no-children-prop" | "react/no-children-to-array" | "react/no-class-component" | "react/no-clone-element" | "react/no-component-will-mount" | "react/no-component-will-receive-props" | "react/no-component-will-update" | "react/no-context-provider" | "react/no-create-ref" | "react/no-default-props" | "react/no-direct-mutation-state" | "react/no-duplicate-key" | "react/no-forward-ref" | "react/no-implicit-key" | "react/no-leaked-conditional-rendering" | "react/no-missing-component-display-name" | "react/no-missing-context-display-name" | "react/no-missing-key" | "react/no-misused-capture-owner-stack" | "react/no-nested-component-definitions" | "react/no-nested-lazy-component-declarations" | "react/no-prop-types" | "react/no-redundant-should-component-update" | "react/no-set-state-in-component-did-mount" | "react/no-set-state-in-component-did-update" | "react/no-set-state-in-component-will-update" | "react/no-string-refs" | "react/no-unnecessary-key" | "react/no-unnecessary-use-callback" | "react/no-unnecessary-use-memo" | "react/no-unnecessary-use-prefix" | "react/no-unsafe-component-will-mount" | "react/no-unsafe-component-will-receive-props" | "react/no-unsafe-component-will-update" | "react/no-unstable-context-value" | "react/no-unstable-default-props" | "react/no-unused-class-component-members" | "react/no-unused-props" | "react/no-unused-state" | "react/no-use-context" | "react/no-useless-forward-ref" | "react/no-useless-fragment" | "react/prefer-destructuring-assignment" | "react/prefer-namespace-import" | "react/prefer-read-only-props" | "react/prefer-use-state-lazy-initialization" | "react-dom/no-dangerously-set-innerhtml" | "react-dom/no-dangerously-set-innerhtml-with-children" | "react-dom/no-find-dom-node" | "react-dom/no-flush-sync" | "react-dom/no-hydrate" | "react-dom/no-missing-button-type" | "react-dom/no-missing-iframe-sandbox" | "react-dom/no-namespace" | "react-dom/no-render" | "react-dom/no-render-return-value" | "react-dom/no-script-url" | "react-dom/no-string-style-prop" | "react-dom/no-unknown-property" | "react-dom/no-unsafe-iframe-sandbox" | "react-dom/no-unsafe-target-blank" | "react-dom/no-use-form-state" | "react-dom/no-void-elements-with-children" | "react-dom/prefer-namespace-import" | "react-web-api/no-leaked-event-listener" | "react-web-api/no-leaked-interval" | "react-web-api/no-leaked-resize-observer" | "react-web-api/no-leaked-timeout" | "react-hooks-extra/no-direct-set-state-in-use-effect" | "react-naming-convention/component-name" | "react-naming-convention/context-name" | "react-naming-convention/filename" | "react-naming-convention/filename-extension" | "react-naming-convention/use-state", RuleConfig>;
8
+ react: Record<"react-x/jsx-dollar" | "react-x/jsx-key-before-spread" | "react-x/jsx-no-comment-textnodes" | "react-x/jsx-shorthand-boolean" | "react-x/jsx-shorthand-fragment" | "react-x/component-hook-factories" | "react-x/error-boundaries" | "react-x/exhaustive-deps" | "react-x/immutability" | "react-x/no-access-state-in-setstate" | "react-x/no-array-index-key" | "react-x/no-children-count" | "react-x/no-children-for-each" | "react-x/no-children-map" | "react-x/no-children-only" | "react-x/no-children-prop" | "react-x/no-children-to-array" | "react-x/no-class-component" | "react-x/no-clone-element" | "react-x/no-component-will-mount" | "react-x/no-component-will-receive-props" | "react-x/no-component-will-update" | "react-x/no-context-provider" | "react-x/no-create-ref" | "react-x/no-direct-mutation-state" | "react-x/no-duplicate-key" | "react-x/no-forward-ref" | "react-x/no-implicit-children" | "react-x/no-implicit-key" | "react-x/no-implicit-ref" | "react-x/no-leaked-conditional-rendering" | "react-x/no-missing-component-display-name" | "react-x/no-missing-context-display-name" | "react-x/no-missing-key" | "react-x/no-misused-capture-owner-stack" | "react-x/no-nested-component-definitions" | "react-x/no-nested-lazy-component-declarations" | "react-x/no-redundant-should-component-update" | "react-x/no-set-state-in-component-did-mount" | "react-x/no-set-state-in-component-did-update" | "react-x/no-set-state-in-component-will-update" | "react-x/no-unnecessary-use-callback" | "react-x/no-unnecessary-use-memo" | "react-x/no-unnecessary-use-prefix" | "react-x/no-unsafe-component-will-mount" | "react-x/no-unsafe-component-will-receive-props" | "react-x/no-unsafe-component-will-update" | "react-x/no-unstable-context-value" | "react-x/no-unstable-default-props" | "react-x/no-unused-class-component-members" | "react-x/no-unused-props" | "react-x/no-unused-state" | "react-x/no-use-context" | "react-x/no-useless-fragment" | "react-x/prefer-destructuring-assignment" | "react-x/prefer-namespace-import" | "react-x/purity" | "react-x/refs" | "react-x/rules-of-hooks" | "react-x/set-state-in-effect" | "react-x/set-state-in-render" | "react-x/unsupported-syntax" | "react-x/use-memo" | "react-x/use-state" | "react-rsc/function-definition" | "react-dom/no-dangerously-set-innerhtml" | "react-dom/no-dangerously-set-innerhtml-with-children" | "react-dom/no-find-dom-node" | "react-dom/no-flush-sync" | "react-dom/no-hydrate" | "react-dom/no-missing-button-type" | "react-dom/no-missing-iframe-sandbox" | "react-dom/no-namespace" | "react-dom/no-render" | "react-dom/no-render-return-value" | "react-dom/no-script-url" | "react-dom/no-string-style-prop" | "react-dom/no-unknown-property" | "react-dom/no-unsafe-iframe-sandbox" | "react-dom/no-unsafe-target-blank" | "react-dom/no-use-form-state" | "react-dom/no-void-elements-with-children" | "react-dom/prefer-namespace-import" | "react-web-api/no-leaked-event-listener" | "react-web-api/no-leaked-interval" | "react-web-api/no-leaked-resize-observer" | "react-web-api/no-leaked-timeout" | "react-naming-convention/context-name" | "react-naming-convention/id-name" | "react-naming-convention/ref-name" | "react-hooks/config" | "react-hooks/gating" | "react-hooks/globals" | "react-hooks/incompatible-library" | "react-hooks/preserve-manual-memoization", RuleConfig>;
9
9
  vue: Record<"vue/comment-directive" | "vue/jsx-uses-vars" | "vue/multi-word-component-names" | "vue/no-arrow-functions-in-watch" | "vue/no-async-in-computed-properties" | "vue/no-child-content" | "vue/no-computed-properties-in-data" | "vue/no-dupe-keys" | "vue/no-dupe-v-else-if" | "vue/no-duplicate-attributes" | "vue/no-export-in-script-setup" | "vue/no-mutating-props" | "vue/no-parsing-error" | "vue/no-ref-as-operand" | "vue/no-reserved-component-names" | "vue/no-reserved-keys" | "vue/no-reserved-props" | "vue/no-shared-component-data" | "vue/no-side-effects-in-computed-properties" | "vue/no-template-key" | "vue/no-textarea-mustache" | "vue/no-unused-components" | "vue/no-unused-vars" | "vue/no-use-computed-property-like-method" | "vue/no-use-v-if-with-v-for" | "vue/no-useless-template-attributes" | "vue/no-v-text-v-html-on-component" | "vue/require-component-is" | "vue/require-prop-type-constructor" | "vue/require-render-return" | "vue/require-v-for-key" | "vue/require-valid-default-prop" | "vue/return-in-computed-property" | "vue/return-in-emits-validator" | "vue/use-v-on-exact" | "vue/valid-attribute-name" | "vue/valid-define-emits" | "vue/valid-define-props" | "vue/valid-next-tick" | "vue/valid-template-root" | "vue/valid-v-bind" | "vue/valid-v-cloak" | "vue/valid-v-else-if" | "vue/valid-v-else" | "vue/valid-v-for" | "vue/valid-v-html" | "vue/valid-v-if" | "vue/valid-v-model" | "vue/valid-v-on" | "vue/valid-v-once" | "vue/valid-v-pre" | "vue/valid-v-show" | "vue/valid-v-slot" | "vue/valid-v-text" | "vue/no-deprecated-data-object-declaration" | "vue/no-deprecated-delete-set" | "vue/no-deprecated-destroyed-lifecycle" | "vue/no-deprecated-dollar-listeners-api" | "vue/no-deprecated-dollar-scopedslots-api" | "vue/no-deprecated-events-api" | "vue/no-deprecated-filter" | "vue/no-deprecated-functional-template" | "vue/no-deprecated-html-element-is" | "vue/no-deprecated-inline-template" | "vue/no-deprecated-model-definition" | "vue/no-deprecated-props-default-this" | "vue/no-deprecated-router-link-tag-prop" | "vue/no-deprecated-scope-attribute" | "vue/no-deprecated-slot-attribute" | "vue/no-deprecated-slot-scope-attribute" | "vue/no-deprecated-v-bind-sync" | "vue/no-deprecated-v-is" | "vue/no-deprecated-v-on-native-modifier" | "vue/no-deprecated-v-on-number-modifiers" | "vue/no-deprecated-vue-config-keycodes" | "vue/no-expose-after-await" | "vue/no-lifecycle-after-await" | "vue/no-v-for-template-key-on-child" | "vue/no-watch-after-await" | "vue/prefer-import-from-vue" | "vue/require-slots-as-functions" | "vue/require-toggle-inside-transition" | "vue/valid-define-options" | "vue/valid-v-is" | "vue/valid-v-memo" | "vue/no-custom-modifiers-on-v-model" | "vue/no-multiple-template-root" | "vue/attribute-hyphenation" | "vue/component-definition-name-casing" | "vue/first-attribute-linebreak" | "vue/html-closing-bracket-newline" | "vue/html-closing-bracket-spacing" | "vue/html-end-tags" | "vue/html-indent" | "vue/html-quotes" | "vue/html-self-closing" | "vue/max-attributes-per-line" | "vue/multiline-html-element-content-newline" | "vue/mustache-interpolation-spacing" | "vue/no-multi-spaces" | "vue/no-spaces-around-equal-signs-in-attribute" | "vue/no-template-shadow" | "vue/one-component-per-file" | "vue/prop-name-casing" | "vue/require-default-prop" | "vue/require-prop-types" | "vue/singleline-html-element-content-newline" | "vue/v-bind-style" | "vue/v-on-style" | "vue/v-slot-style" | "vue/require-explicit-emits" | "vue/v-on-event-hyphenation" | "vue/attributes-order" | "vue/block-order" | "vue/no-lone-template" | "vue/no-multiple-slot-args" | "vue/no-required-prop-with-default" | "vue/no-v-html" | "vue/order-in-components" | "vue/this-in-template" | "vue/block-lang" | "vue/block-tag-newline" | "vue/component-api-style" | "vue/component-name-in-template-casing" | "vue/component-options-name-casing" | "vue/custom-event-name-casing" | "vue/define-emits-declaration" | "vue/define-macros-order" | "vue/define-props-declaration" | "vue/define-props-destructuring" | "vue/enforce-style-attribute" | "vue/html-button-has-type" | "vue/html-comment-content-newline" | "vue/html-comment-content-spacing" | "vue/html-comment-indent" | "vue/match-component-file-name" | "vue/match-component-import-name" | "vue/max-lines-per-block" | "vue/max-props" | "vue/max-template-depth" | "vue/new-line-between-multi-line-property" | "vue/next-tick-style" | "vue/no-bare-strings-in-template" | "vue/no-boolean-default" | "vue/no-duplicate-attr-inheritance" | "vue/no-duplicate-class-names" | "vue/no-empty-component-block" | "vue/no-import-compiler-macros" | "vue/no-multiple-objects-in-class" | "vue/no-negated-v-if-condition" | "vue/no-potential-component-option-typo" | "vue/no-ref-object-reactivity-loss" | "vue/no-restricted-block" | "vue/no-restricted-call-after-await" | "vue/no-restricted-class" | "vue/no-restricted-component-names" | "vue/no-restricted-component-options" | "vue/no-restricted-custom-event" | "vue/no-restricted-html-elements" | "vue/no-restricted-props" | "vue/no-restricted-static-attribute" | "vue/no-restricted-v-bind" | "vue/no-restricted-v-on" | "vue/no-root-v-if" | "vue/no-setup-props-reactivity-loss" | "vue/no-static-inline-styles" | "vue/no-template-target-blank" | "vue/no-this-in-before-route-enter" | "vue/no-undef-components" | "vue/no-undef-properties" | "vue/no-unsupported-features" | "vue/no-unused-emit-declarations" | "vue/no-unused-properties" | "vue/no-unused-refs" | "vue/no-use-v-else-with-v-for" | "vue/no-useless-mustaches" | "vue/no-useless-v-bind" | "vue/no-v-text" | "vue/padding-line-between-blocks" | "vue/padding-line-between-tags" | "vue/padding-lines-in-component-definition" | "vue/prefer-define-options" | "vue/prefer-prop-type-boolean-first" | "vue/prefer-separate-static-class" | "vue/prefer-true-attribute-shorthand" | "vue/prefer-use-template-ref" | "vue/require-default-export" | "vue/require-direct-export" | "vue/require-emit-validator" | "vue/require-explicit-slots" | "vue/require-expose" | "vue/require-macro-variable-name" | "vue/require-name-property" | "vue/require-prop-comment" | "vue/require-typed-object-prop" | "vue/require-typed-ref" | "vue/restricted-component-names" | "vue/script-indent" | "vue/slot-name-casing" | "vue/sort-keys" | "vue/static-class-names-order" | "vue/v-for-delimiter-style" | "vue/v-if-else-key" | "vue/v-on-handler-style" | "vue/array-bracket-newline" | "vue/array-bracket-spacing" | "vue/array-element-newline" | "vue/arrow-spacing" | "vue/block-spacing" | "vue/brace-style" | "vue/camelcase" | "vue/comma-dangle" | "vue/comma-spacing" | "vue/comma-style" | "vue/dot-location" | "vue/dot-notation" | "vue/eqeqeq" | "vue/func-call-spacing" | "vue/key-spacing" | "vue/keyword-spacing" | "vue/max-len" | "vue/multiline-ternary" | "vue/no-console" | "vue/no-constant-condition" | "vue/no-empty-pattern" | "vue/no-extra-parens" | "vue/no-implicit-coercion" | "vue/no-irregular-whitespace" | "vue/no-loss-of-precision" | "vue/no-negated-condition" | "vue/no-restricted-syntax" | "vue/no-sparse-arrays" | "vue/no-useless-concat" | "vue/object-curly-newline" | "vue/object-curly-spacing" | "vue/object-property-newline" | "vue/object-shorthand" | "vue/operator-linebreak" | "vue/prefer-template" | "vue/quote-props" | "vue/space-in-parens" | "vue/space-infix-ops" | "vue/space-unary-ops" | "vue/template-curly-spacing", RuleConfig>;
10
- stylistic: Record<"stylistic/array-bracket-newline" | "stylistic/array-bracket-spacing" | "stylistic/array-element-newline" | "stylistic/arrow-parens" | "stylistic/arrow-spacing" | "stylistic/block-spacing" | "stylistic/brace-style" | "stylistic/comma-dangle" | "stylistic/comma-spacing" | "stylistic/comma-style" | "stylistic/computed-property-spacing" | "stylistic/curly-newline" | "stylistic/dot-location" | "stylistic/eol-last" | "stylistic/function-call-argument-newline" | "stylistic/function-call-spacing" | "stylistic/function-paren-newline" | "stylistic/generator-star-spacing" | "stylistic/implicit-arrow-linebreak" | "stylistic/indent" | "stylistic/indent-binary-ops" | "stylistic/jsx-child-element-spacing" | "stylistic/jsx-closing-bracket-location" | "stylistic/jsx-closing-tag-location" | "stylistic/jsx-curly-brace-presence" | "stylistic/jsx-curly-newline" | "stylistic/jsx-curly-spacing" | "stylistic/jsx-equals-spacing" | "stylistic/jsx-first-prop-new-line" | "stylistic/jsx-function-call-newline" | "stylistic/jsx-indent-props" | "stylistic/jsx-max-props-per-line" | "stylistic/jsx-newline" | "stylistic/jsx-one-expression-per-line" | "stylistic/jsx-pascal-case" | "stylistic/jsx-quotes" | "stylistic/jsx-self-closing-comp" | "stylistic/jsx-sort-props" | "stylistic/jsx-tag-spacing" | "stylistic/jsx-wrap-multilines" | "stylistic/key-spacing" | "stylistic/keyword-spacing" | "stylistic/line-comment-position" | "stylistic/linebreak-style" | "stylistic/lines-around-comment" | "stylistic/lines-between-class-members" | "stylistic/max-len" | "stylistic/max-statements-per-line" | "stylistic/member-delimiter-style" | "stylistic/multiline-comment-style" | "stylistic/multiline-ternary" | "stylistic/new-parens" | "stylistic/newline-per-chained-call" | "stylistic/no-confusing-arrow" | "stylistic/no-extra-parens" | "stylistic/no-extra-semi" | "stylistic/no-floating-decimal" | "stylistic/no-mixed-operators" | "stylistic/no-mixed-spaces-and-tabs" | "stylistic/no-multi-spaces" | "stylistic/no-multiple-empty-lines" | "stylistic/no-tabs" | "stylistic/no-trailing-spaces" | "stylistic/no-whitespace-before-property" | "stylistic/nonblock-statement-body-position" | "stylistic/object-curly-newline" | "stylistic/object-curly-spacing" | "stylistic/object-property-newline" | "stylistic/one-var-declaration-per-line" | "stylistic/operator-linebreak" | "stylistic/padded-blocks" | "stylistic/padding-line-between-statements" | "stylistic/quote-props" | "stylistic/quotes" | "stylistic/rest-spread-spacing" | "stylistic/semi" | "stylistic/semi-spacing" | "stylistic/semi-style" | "stylistic/space-before-blocks" | "stylistic/space-before-function-paren" | "stylistic/space-in-parens" | "stylistic/space-infix-ops" | "stylistic/space-unary-ops" | "stylistic/spaced-comment" | "stylistic/switch-colon-spacing" | "stylistic/template-curly-spacing" | "stylistic/template-tag-spacing" | "stylistic/type-annotation-spacing" | "stylistic/type-generic-spacing" | "stylistic/type-named-tuple-spacing" | "stylistic/wrap-iife" | "stylistic/wrap-regex" | "stylistic/yield-star-spacing", RuleConfig>;
10
+ stylistic: Record<"stylistic/array-bracket-newline" | "stylistic/array-bracket-spacing" | "stylistic/array-element-newline" | "stylistic/arrow-parens" | "stylistic/arrow-spacing" | "stylistic/block-spacing" | "stylistic/brace-style" | "stylistic/comma-dangle" | "stylistic/comma-spacing" | "stylistic/comma-style" | "stylistic/computed-property-spacing" | "stylistic/curly-newline" | "stylistic/dot-location" | "stylistic/eol-last" | "stylistic/function-call-argument-newline" | "stylistic/function-call-spacing" | "stylistic/function-paren-newline" | "stylistic/generator-star-spacing" | "stylistic/implicit-arrow-linebreak" | "stylistic/indent" | "stylistic/indent-binary-ops" | "stylistic/jsx-child-element-spacing" | "stylistic/jsx-closing-bracket-location" | "stylistic/jsx-closing-tag-location" | "stylistic/jsx-curly-brace-presence" | "stylistic/jsx-curly-newline" | "stylistic/jsx-curly-spacing" | "stylistic/jsx-equals-spacing" | "stylistic/jsx-first-prop-new-line" | "stylistic/jsx-function-call-newline" | "stylistic/jsx-indent-props" | "stylistic/jsx-max-props-per-line" | "stylistic/jsx-newline" | "stylistic/jsx-one-expression-per-line" | "stylistic/jsx-pascal-case" | "stylistic/jsx-quotes" | "stylistic/jsx-self-closing-comp" | "stylistic/jsx-tag-spacing" | "stylistic/jsx-wrap-multilines" | "stylistic/key-spacing" | "stylistic/keyword-spacing" | "stylistic/line-comment-position" | "stylistic/linebreak-style" | "stylistic/lines-around-comment" | "stylistic/lines-between-class-members" | "stylistic/max-len" | "stylistic/max-statements-per-line" | "stylistic/member-delimiter-style" | "stylistic/multiline-comment-style" | "stylistic/multiline-ternary" | "stylistic/new-parens" | "stylistic/newline-per-chained-call" | "stylistic/no-confusing-arrow" | "stylistic/no-extra-parens" | "stylistic/no-extra-semi" | "stylistic/no-floating-decimal" | "stylistic/no-mixed-operators" | "stylistic/no-mixed-spaces-and-tabs" | "stylistic/no-multi-spaces" | "stylistic/no-multiple-empty-lines" | "stylistic/no-tabs" | "stylistic/no-trailing-spaces" | "stylistic/no-whitespace-before-property" | "stylistic/nonblock-statement-body-position" | "stylistic/object-curly-newline" | "stylistic/object-curly-spacing" | "stylistic/object-property-newline" | "stylistic/one-var-declaration-per-line" | "stylistic/operator-linebreak" | "stylistic/padded-blocks" | "stylistic/padding-line-between-statements" | "stylistic/quote-props" | "stylistic/quotes" | "stylistic/rest-spread-spacing" | "stylistic/semi" | "stylistic/semi-spacing" | "stylistic/semi-style" | "stylistic/space-before-blocks" | "stylistic/space-before-function-paren" | "stylistic/space-in-parens" | "stylistic/space-infix-ops" | "stylistic/space-unary-ops" | "stylistic/spaced-comment" | "stylistic/switch-colon-spacing" | "stylistic/template-curly-spacing" | "stylistic/template-tag-spacing" | "stylistic/type-annotation-spacing" | "stylistic/type-generic-spacing" | "stylistic/type-named-tuple-spacing" | "stylistic/wrap-iife" | "stylistic/wrap-regex" | "stylistic/yield-star-spacing", RuleConfig>;
11
11
  antfu: Record<"antfu/consistent-chaining" | "antfu/consistent-list-newline" | "antfu/curly" | "antfu/if-newline" | "antfu/import-dedupe" | "antfu/indent-unindent" | "antfu/no-import-dist" | "antfu/no-import-node-modules-by-path" | "antfu/no-top-level-await" | "antfu/no-ts-export-equal" | "antfu/top-level-function", RuleConfig>;
12
+ imports: Record<"imports/consistent-type-specifier-style" | "imports/exports-last" | "imports/first" | "imports/newline-after-import" | "imports/no-default-export" | "imports/no-duplicates" | "imports/no-mutable-exports" | "imports/no-named-default" | "imports/prefer-default-export", RuleConfig>;
12
13
  };
13
14
  export default _default;
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACtC,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,aAAa,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;AAS/C,wBAOE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACtC,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,aAAa,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;;AAU/C,wBAQE"}
package/package.json CHANGED
@@ -4,10 +4,10 @@
4
4
  "description": "pawover's esLint rules",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "version": "0.0.0-beta.1",
8
- "packageManager": "pnpm@10.20.0",
7
+ "version": "0.0.0-beta.11",
8
+ "packageManager": "pnpm@10.28.2",
9
9
  "engines": {
10
- "node": ">=22.20.0"
10
+ "node": ">=22.22.0"
11
11
  },
12
12
  "keywords": [
13
13
  "pawover",
@@ -42,39 +42,40 @@
42
42
  "public": "pnpm build && npm publish --access public",
43
43
  "check": "pnpm check:types & pnpm check:eslint & pnpm check:format",
44
44
  "check:types": "tsc --noEmit",
45
- "check:eslint": "eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=.cache/eslint.cache.json --cache",
45
+ "check:eslint": "pnpm build && pnpm eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=.cache/eslint.cache.json --cache",
46
46
  "check:format": "prettier --write \"**/*.{html,json}\" !.vscode/settings.json --cache-location=.cache/prettier.cache.json --cache",
47
47
  "check:pack": "attw --pack .",
48
48
  "clean": "pnpm clean:cache & pnpm clean:lib & pnpm clean:output",
49
49
  "clean:cache": "rimraf -g **/.cache **/auto-*.json **/auto-*.d.ts",
50
50
  "clean:lib": "rimraf -g **/node_modules",
51
51
  "clean:output": "rimraf dist",
52
- "lib:up": "taze -I -r"
52
+ "lib:up": "taze -I -r --exclude pnpm"
53
53
  },
54
54
  "devDependencies": {
55
- "@eslint-react/eslint-plugin": "^2.5.1",
56
- "@stylistic/eslint-plugin": "^5.6.1",
57
- "eslint": "^9.39.2",
58
- "eslint-plugin-antfu": "^3.1.1",
55
+ "@eslint-react/eslint-plugin": "^3.0.0",
56
+ "@stylistic/eslint-plugin": "^5.10.0",
57
+ "eslint": "^10.0.3",
58
+ "eslint-plugin-antfu": "^3.2.2",
59
+ "eslint-plugin-import-lite": "^0.5.2",
59
60
  "eslint-plugin-react-hooks": "^7.0.1",
60
- "eslint-plugin-vue": "^10.6.2",
61
- "globals": "^17.0.0",
62
- "prettier": "^3.7.4",
63
- "rimraf": "^6.1.2",
64
- "taze": "^19.9.2",
61
+ "eslint-plugin-vue": "^10.8.0",
62
+ "prettier": "^3.8.1",
63
+ "rimraf": "^6.1.3",
64
+ "taze": "^19.10.0",
65
65
  "typescript": "^5.9.3",
66
- "typescript-eslint": "^8.52.0"
66
+ "typescript-eslint": "^8.57.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "@eslint-react/eslint-plugin": ">=2.3.5",
70
- "@stylistic/eslint-plugin": ">=5.5.0",
71
- "eslint": ">=9.39.1",
72
- "eslint-plugin-antfu": ">=3.1.1",
69
+ "@eslint-react/eslint-plugin": ">=3.0.0",
70
+ "@stylistic/eslint-plugin": ">=5.10.0",
71
+ "eslint": ">=10.0.3",
72
+ "eslint-plugin-antfu": ">=3.2.2",
73
+ "eslint-plugin-import-lite": ">=0.5.2",
73
74
  "eslint-plugin-react-hooks": ">=7.0.1",
74
- "eslint-plugin-vue": ">=10.5.1",
75
- "globals": ">=16.5.0",
75
+ "eslint-plugin-vue": ">=10.8.0",
76
+ "react": ">=19.2.0",
76
77
  "typescript": ">=5.9.3",
77
- "typescript-eslint": ">=8.46.4"
78
+ "typescript-eslint": ">=8.57.0"
78
79
  },
79
80
  "peerDependenciesMeta": {
80
81
  "@eslint-react/eslint-plugin": {
@@ -86,13 +87,16 @@
86
87
  "eslint-plugin-antfu": {
87
88
  "optional": true
88
89
  },
90
+ "eslint-plugin-import-lite": {
91
+ "optional": true
92
+ },
89
93
  "eslint-plugin-react-hooks": {
90
94
  "optional": true
91
95
  },
92
96
  "eslint-plugin-vue": {
93
97
  "optional": true
94
98
  },
95
- "globals": {
99
+ "react": {
96
100
  "optional": true
97
101
  },
98
102
  "typescript": {