@nekoyasuii/config 0.1.1 → 0.1.3
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/dist/{chunk-xmts0xe5.js → chunk-08m6971b.js} +1 -1
- package/dist/{chunk-8m4by0h8.js → chunk-0xdbbpn5.js} +47 -23
- package/dist/tools/oxlint/config/core/index.d.ts +1 -1
- package/dist/tools/oxlint/config/core/index.js +1 -1
- package/dist/tools/oxlint/config/index.d.ts +34 -22
- package/dist/tools/oxlint/config/index.js +2 -2
- package/dist/tools/oxlint/config/react/index.d.ts +33 -21
- package/dist/tools/oxlint/config/react/index.js +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ var coreConfig = defineConfig({
|
|
|
31
31
|
"class-methods-use-this": "error",
|
|
32
32
|
complexity: "error",
|
|
33
33
|
"constructor-super": "error",
|
|
34
|
-
curly:
|
|
34
|
+
curly: "off",
|
|
35
35
|
"default-case": "error",
|
|
36
36
|
"default-case-last": "error",
|
|
37
37
|
"default-param-last": "error",
|
|
@@ -43,21 +43,16 @@ var reactConfig = defineConfig({
|
|
|
43
43
|
"react-perf/jsx-no-new-array-as-prop": "off",
|
|
44
44
|
"react-perf/jsx-no-new-function-as-prop": "off",
|
|
45
45
|
"react-perf/jsx-no-new-object-as-prop": "off",
|
|
46
|
-
"react/button-has-type": "error",
|
|
47
46
|
"react/capitalized-calls": "error",
|
|
48
|
-
"react/checked-requires-onchange-or-readonly": "error",
|
|
49
|
-
"react/display-name": "error",
|
|
50
47
|
"react/error-boundaries": "error",
|
|
51
48
|
"react/exhaustive-deps": "error",
|
|
52
49
|
"react/exhaustive-effect-dependencies": "error",
|
|
53
|
-
"react/forbid-component-props": "off",
|
|
54
|
-
"react/forbid-dom-props": "error",
|
|
55
|
-
"react/forbid-elements": "error",
|
|
56
50
|
"react/forward-ref-uses-ref": "off",
|
|
57
51
|
"react/function-component-definition": [
|
|
58
52
|
"error",
|
|
59
53
|
{
|
|
60
|
-
namedComponents: "arrow-function"
|
|
54
|
+
namedComponents: "arrow-function",
|
|
55
|
+
unnamedComponents: "arrow-function"
|
|
61
56
|
}
|
|
62
57
|
],
|
|
63
58
|
"react/globals": "error",
|
|
@@ -67,50 +62,35 @@ var reactConfig = defineConfig({
|
|
|
67
62
|
"react/immutability": "error",
|
|
68
63
|
"react/incompatible-library": "error",
|
|
69
64
|
"react/invariant": "error",
|
|
70
|
-
"react/jsx-boolean-value": "off",
|
|
71
65
|
"react/jsx-curly-brace-presence": "error",
|
|
72
|
-
"react/jsx-filename-extension": "off",
|
|
73
66
|
"react/jsx-fragments": "error",
|
|
74
67
|
"react/jsx-key": "error",
|
|
75
|
-
"react/jsx-max-depth": "off",
|
|
76
68
|
"react/jsx-no-comment-textnodes": "error",
|
|
77
69
|
"react/jsx-no-constructed-context-values": "error",
|
|
78
70
|
"react/jsx-no-duplicate-props": "error",
|
|
79
|
-
"react/jsx-no-literals": "off",
|
|
80
|
-
"react/jsx-no-script-url": "error",
|
|
81
71
|
"react/jsx-no-target-blank": "error",
|
|
82
72
|
"react/jsx-no-undef": "error",
|
|
83
73
|
"react/jsx-no-useless-fragment": "error",
|
|
84
|
-
"react/jsx-pascal-case": "error",
|
|
85
74
|
"react/jsx-props-no-spread-multi": "error",
|
|
86
|
-
"react/jsx-props-no-spreading": "off",
|
|
87
75
|
"react/memo-dependencies": "error",
|
|
88
|
-
"react/no-array-index-key": "off",
|
|
89
76
|
"react/no-children-prop": "error",
|
|
90
77
|
"react/no-clone-element": "error",
|
|
91
|
-
"react/no-danger": "error",
|
|
92
78
|
"react/no-danger-with-children": "error",
|
|
93
79
|
"react/no-deriving-state-in-effects": "error",
|
|
94
|
-
"react/no-did-mount-set-state": "error",
|
|
95
80
|
"react/no-did-update-set-state": "error",
|
|
96
81
|
"react/no-direct-mutation-state": "error",
|
|
97
82
|
"react/no-find-dom-node": "error",
|
|
98
83
|
"react/no-is-mounted": "error",
|
|
99
|
-
"react/no-multi-comp": "off",
|
|
100
84
|
"react/no-namespace": "error",
|
|
101
|
-
"react/no-object-type-as-default-prop": "error",
|
|
102
85
|
"react/no-react-children": "error",
|
|
103
|
-
"react/no-redundant-should-component-update": "error",
|
|
104
86
|
"react/no-render-return-value": "error",
|
|
105
87
|
"react/no-set-state": "error",
|
|
106
88
|
"react/no-string-refs": "error",
|
|
107
89
|
"react/no-this-in-sfc": "error",
|
|
108
90
|
"react/no-unescaped-entities": "error",
|
|
109
91
|
"react/no-unknown-property": "off",
|
|
110
|
-
"react/no-unsafe": "error",
|
|
111
92
|
"react/no-unstable-nested-components": "error",
|
|
112
93
|
"react/no-will-update-set-state": "error",
|
|
113
|
-
"react/only-export-components": "off",
|
|
114
94
|
"react/prefer-es6-class": "error",
|
|
115
95
|
"react/prefer-function-component": "error",
|
|
116
96
|
"react/preserve-manual-memoization": "error",
|
|
@@ -131,7 +111,51 @@ var reactConfig = defineConfig({
|
|
|
131
111
|
"react/use-memo": "error",
|
|
132
112
|
"react/void-dom-elements-no-children": "error",
|
|
133
113
|
"react/void-use-memo": "error",
|
|
134
|
-
"react/jsx-handler-names": "off"
|
|
114
|
+
"react/jsx-handler-names": "off",
|
|
115
|
+
"react/only-export-components": ["warn", { allowConstantExport: true }],
|
|
116
|
+
"react/button-has-type": ["off"],
|
|
117
|
+
"react/checked-requires-onchange-or-readonly": ["off"],
|
|
118
|
+
"react/display-name": ["off"],
|
|
119
|
+
"react/forbid-component-props": ["off"],
|
|
120
|
+
"react/forbid-dom-props": ["off"],
|
|
121
|
+
"react/forbid-elements": ["off"],
|
|
122
|
+
"react/jsx-boolean-value": ["error", "never"],
|
|
123
|
+
"react/jsx-filename-extension": [
|
|
124
|
+
"error",
|
|
125
|
+
{
|
|
126
|
+
extensions: [".jsx", ".tsx"]
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"react/jsx-max-depth": ["off"],
|
|
130
|
+
"react/jsx-no-literals": ["off"],
|
|
131
|
+
"react/jsx-no-script-url": [
|
|
132
|
+
"error",
|
|
133
|
+
[
|
|
134
|
+
{
|
|
135
|
+
name: "Link",
|
|
136
|
+
props: ["to"]
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
],
|
|
140
|
+
"react/jsx-pascal-case": [
|
|
141
|
+
"error",
|
|
142
|
+
{
|
|
143
|
+
allowAllCaps: true
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"react/jsx-props-no-spreading": [
|
|
147
|
+
2,
|
|
148
|
+
{
|
|
149
|
+
explicitSpread: "ignore"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"react/no-array-index-key": ["off"],
|
|
153
|
+
"react/no-danger": ["warn"],
|
|
154
|
+
"react/no-did-mount-set-state": ["off"],
|
|
155
|
+
"react/no-multi-comp": ["off"],
|
|
156
|
+
"react/no-object-type-as-default-prop": ["off"],
|
|
157
|
+
"react/no-redundant-should-component-update": ["off"],
|
|
158
|
+
"react/no-unsafe": ["off"]
|
|
135
159
|
}
|
|
136
160
|
});
|
|
137
161
|
|
|
@@ -20,7 +20,7 @@ export declare const coreConfig: {
|
|
|
20
20
|
"class-methods-use-this": "error";
|
|
21
21
|
complexity: "error";
|
|
22
22
|
"constructor-super": "error";
|
|
23
|
-
curly:
|
|
23
|
+
curly: "off";
|
|
24
24
|
"default-case": "error";
|
|
25
25
|
"default-case-last": "error";
|
|
26
26
|
"default-param-last": "error";
|
|
@@ -47,7 +47,7 @@ declare const _default: {
|
|
|
47
47
|
"class-methods-use-this": "error";
|
|
48
48
|
complexity: "error";
|
|
49
49
|
"constructor-super": "error";
|
|
50
|
-
curly:
|
|
50
|
+
curly: "off";
|
|
51
51
|
"default-case": "error";
|
|
52
52
|
"default-case-last": "error";
|
|
53
53
|
"default-param-last": "error";
|
|
@@ -656,19 +656,14 @@ declare const _default: {
|
|
|
656
656
|
"react-perf/jsx-no-new-array-as-prop": "off";
|
|
657
657
|
"react-perf/jsx-no-new-function-as-prop": "off";
|
|
658
658
|
"react-perf/jsx-no-new-object-as-prop": "off";
|
|
659
|
-
"react/button-has-type": "error";
|
|
660
659
|
"react/capitalized-calls": "error";
|
|
661
|
-
"react/checked-requires-onchange-or-readonly": "error";
|
|
662
|
-
"react/display-name": "error";
|
|
663
660
|
"react/error-boundaries": "error";
|
|
664
661
|
"react/exhaustive-deps": "error";
|
|
665
662
|
"react/exhaustive-effect-dependencies": "error";
|
|
666
|
-
"react/forbid-component-props": "off";
|
|
667
|
-
"react/forbid-dom-props": "error";
|
|
668
|
-
"react/forbid-elements": "error";
|
|
669
663
|
"react/forward-ref-uses-ref": "off";
|
|
670
664
|
"react/function-component-definition": ["error", {
|
|
671
665
|
namedComponents: "arrow-function";
|
|
666
|
+
unnamedComponents: "arrow-function";
|
|
672
667
|
}];
|
|
673
668
|
"react/globals": "error";
|
|
674
669
|
"react/hook-use-state": "error";
|
|
@@ -677,50 +672,35 @@ declare const _default: {
|
|
|
677
672
|
"react/immutability": "error";
|
|
678
673
|
"react/incompatible-library": "error";
|
|
679
674
|
"react/invariant": "error";
|
|
680
|
-
"react/jsx-boolean-value": "off";
|
|
681
675
|
"react/jsx-curly-brace-presence": "error";
|
|
682
|
-
"react/jsx-filename-extension": "off";
|
|
683
676
|
"react/jsx-fragments": "error";
|
|
684
677
|
"react/jsx-key": "error";
|
|
685
|
-
"react/jsx-max-depth": "off";
|
|
686
678
|
"react/jsx-no-comment-textnodes": "error";
|
|
687
679
|
"react/jsx-no-constructed-context-values": "error";
|
|
688
680
|
"react/jsx-no-duplicate-props": "error";
|
|
689
|
-
"react/jsx-no-literals": "off";
|
|
690
|
-
"react/jsx-no-script-url": "error";
|
|
691
681
|
"react/jsx-no-target-blank": "error";
|
|
692
682
|
"react/jsx-no-undef": "error";
|
|
693
683
|
"react/jsx-no-useless-fragment": "error";
|
|
694
|
-
"react/jsx-pascal-case": "error";
|
|
695
684
|
"react/jsx-props-no-spread-multi": "error";
|
|
696
|
-
"react/jsx-props-no-spreading": "off";
|
|
697
685
|
"react/memo-dependencies": "error";
|
|
698
|
-
"react/no-array-index-key": "off";
|
|
699
686
|
"react/no-children-prop": "error";
|
|
700
687
|
"react/no-clone-element": "error";
|
|
701
|
-
"react/no-danger": "error";
|
|
702
688
|
"react/no-danger-with-children": "error";
|
|
703
689
|
"react/no-deriving-state-in-effects": "error";
|
|
704
|
-
"react/no-did-mount-set-state": "error";
|
|
705
690
|
"react/no-did-update-set-state": "error";
|
|
706
691
|
"react/no-direct-mutation-state": "error";
|
|
707
692
|
"react/no-find-dom-node": "error";
|
|
708
693
|
"react/no-is-mounted": "error";
|
|
709
|
-
"react/no-multi-comp": "off";
|
|
710
694
|
"react/no-namespace": "error";
|
|
711
|
-
"react/no-object-type-as-default-prop": "error";
|
|
712
695
|
"react/no-react-children": "error";
|
|
713
|
-
"react/no-redundant-should-component-update": "error";
|
|
714
696
|
"react/no-render-return-value": "error";
|
|
715
697
|
"react/no-set-state": "error";
|
|
716
698
|
"react/no-string-refs": "error";
|
|
717
699
|
"react/no-this-in-sfc": "error";
|
|
718
700
|
"react/no-unescaped-entities": "error";
|
|
719
701
|
"react/no-unknown-property": "off";
|
|
720
|
-
"react/no-unsafe": "error";
|
|
721
702
|
"react/no-unstable-nested-components": "error";
|
|
722
703
|
"react/no-will-update-set-state": "error";
|
|
723
|
-
"react/only-export-components": "off";
|
|
724
704
|
"react/prefer-es6-class": "error";
|
|
725
705
|
"react/prefer-function-component": "error";
|
|
726
706
|
"react/preserve-manual-memoization": "error";
|
|
@@ -742,6 +722,38 @@ declare const _default: {
|
|
|
742
722
|
"react/void-dom-elements-no-children": "error";
|
|
743
723
|
"react/void-use-memo": "error";
|
|
744
724
|
"react/jsx-handler-names": "off";
|
|
725
|
+
"react/only-export-components": ["warn", {
|
|
726
|
+
allowConstantExport: true;
|
|
727
|
+
}];
|
|
728
|
+
"react/button-has-type": ["off"];
|
|
729
|
+
"react/checked-requires-onchange-or-readonly": ["off"];
|
|
730
|
+
"react/display-name": ["off"];
|
|
731
|
+
"react/forbid-component-props": ["off"];
|
|
732
|
+
"react/forbid-dom-props": ["off"];
|
|
733
|
+
"react/forbid-elements": ["off"];
|
|
734
|
+
"react/jsx-boolean-value": ["error", "never"];
|
|
735
|
+
"react/jsx-filename-extension": ["error", {
|
|
736
|
+
extensions: string[];
|
|
737
|
+
}];
|
|
738
|
+
"react/jsx-max-depth": ["off"];
|
|
739
|
+
"react/jsx-no-literals": ["off"];
|
|
740
|
+
"react/jsx-no-script-url": ["error", {
|
|
741
|
+
name: string;
|
|
742
|
+
props: string[];
|
|
743
|
+
}[]];
|
|
744
|
+
"react/jsx-pascal-case": ["error", {
|
|
745
|
+
allowAllCaps: true;
|
|
746
|
+
}];
|
|
747
|
+
"react/jsx-props-no-spreading": [number, {
|
|
748
|
+
explicitSpread: "ignore";
|
|
749
|
+
}];
|
|
750
|
+
"react/no-array-index-key": ["off"];
|
|
751
|
+
"react/no-danger": ["warn"];
|
|
752
|
+
"react/no-did-mount-set-state": ["off"];
|
|
753
|
+
"react/no-multi-comp": ["off"];
|
|
754
|
+
"react/no-object-type-as-default-prop": ["off"];
|
|
755
|
+
"react/no-redundant-should-component-update": ["off"];
|
|
756
|
+
"react/no-unsafe": ["off"];
|
|
745
757
|
};
|
|
746
758
|
})[];
|
|
747
759
|
ignorePatterns: string[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
coreConfig
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-08m6971b.js";
|
|
4
4
|
import {
|
|
5
5
|
selectJsPlugins
|
|
6
6
|
} from "../../../chunk-1chg07xf.js";
|
|
7
7
|
import"../../../chunk-41590bpf.js";
|
|
8
8
|
import {
|
|
9
9
|
reactConfig
|
|
10
|
-
} from "../../../chunk-
|
|
10
|
+
} from "../../../chunk-0xdbbpn5.js";
|
|
11
11
|
import {
|
|
12
12
|
antiSlopConfig
|
|
13
13
|
} from "../../../chunk-c8jq73qx.js";
|
|
@@ -41,19 +41,14 @@ export declare const reactConfig: {
|
|
|
41
41
|
"react-perf/jsx-no-new-array-as-prop": "off";
|
|
42
42
|
"react-perf/jsx-no-new-function-as-prop": "off";
|
|
43
43
|
"react-perf/jsx-no-new-object-as-prop": "off";
|
|
44
|
-
"react/button-has-type": "error";
|
|
45
44
|
"react/capitalized-calls": "error";
|
|
46
|
-
"react/checked-requires-onchange-or-readonly": "error";
|
|
47
|
-
"react/display-name": "error";
|
|
48
45
|
"react/error-boundaries": "error";
|
|
49
46
|
"react/exhaustive-deps": "error";
|
|
50
47
|
"react/exhaustive-effect-dependencies": "error";
|
|
51
|
-
"react/forbid-component-props": "off";
|
|
52
|
-
"react/forbid-dom-props": "error";
|
|
53
|
-
"react/forbid-elements": "error";
|
|
54
48
|
"react/forward-ref-uses-ref": "off";
|
|
55
49
|
"react/function-component-definition": ["error", {
|
|
56
50
|
namedComponents: "arrow-function";
|
|
51
|
+
unnamedComponents: "arrow-function";
|
|
57
52
|
}];
|
|
58
53
|
"react/globals": "error";
|
|
59
54
|
"react/hook-use-state": "error";
|
|
@@ -62,50 +57,35 @@ export declare const reactConfig: {
|
|
|
62
57
|
"react/immutability": "error";
|
|
63
58
|
"react/incompatible-library": "error";
|
|
64
59
|
"react/invariant": "error";
|
|
65
|
-
"react/jsx-boolean-value": "off";
|
|
66
60
|
"react/jsx-curly-brace-presence": "error";
|
|
67
|
-
"react/jsx-filename-extension": "off";
|
|
68
61
|
"react/jsx-fragments": "error";
|
|
69
62
|
"react/jsx-key": "error";
|
|
70
|
-
"react/jsx-max-depth": "off";
|
|
71
63
|
"react/jsx-no-comment-textnodes": "error";
|
|
72
64
|
"react/jsx-no-constructed-context-values": "error";
|
|
73
65
|
"react/jsx-no-duplicate-props": "error";
|
|
74
|
-
"react/jsx-no-literals": "off";
|
|
75
|
-
"react/jsx-no-script-url": "error";
|
|
76
66
|
"react/jsx-no-target-blank": "error";
|
|
77
67
|
"react/jsx-no-undef": "error";
|
|
78
68
|
"react/jsx-no-useless-fragment": "error";
|
|
79
|
-
"react/jsx-pascal-case": "error";
|
|
80
69
|
"react/jsx-props-no-spread-multi": "error";
|
|
81
|
-
"react/jsx-props-no-spreading": "off";
|
|
82
70
|
"react/memo-dependencies": "error";
|
|
83
|
-
"react/no-array-index-key": "off";
|
|
84
71
|
"react/no-children-prop": "error";
|
|
85
72
|
"react/no-clone-element": "error";
|
|
86
|
-
"react/no-danger": "error";
|
|
87
73
|
"react/no-danger-with-children": "error";
|
|
88
74
|
"react/no-deriving-state-in-effects": "error";
|
|
89
|
-
"react/no-did-mount-set-state": "error";
|
|
90
75
|
"react/no-did-update-set-state": "error";
|
|
91
76
|
"react/no-direct-mutation-state": "error";
|
|
92
77
|
"react/no-find-dom-node": "error";
|
|
93
78
|
"react/no-is-mounted": "error";
|
|
94
|
-
"react/no-multi-comp": "off";
|
|
95
79
|
"react/no-namespace": "error";
|
|
96
|
-
"react/no-object-type-as-default-prop": "error";
|
|
97
80
|
"react/no-react-children": "error";
|
|
98
|
-
"react/no-redundant-should-component-update": "error";
|
|
99
81
|
"react/no-render-return-value": "error";
|
|
100
82
|
"react/no-set-state": "error";
|
|
101
83
|
"react/no-string-refs": "error";
|
|
102
84
|
"react/no-this-in-sfc": "error";
|
|
103
85
|
"react/no-unescaped-entities": "error";
|
|
104
86
|
"react/no-unknown-property": "off";
|
|
105
|
-
"react/no-unsafe": "error";
|
|
106
87
|
"react/no-unstable-nested-components": "error";
|
|
107
88
|
"react/no-will-update-set-state": "error";
|
|
108
|
-
"react/only-export-components": "off";
|
|
109
89
|
"react/prefer-es6-class": "error";
|
|
110
90
|
"react/prefer-function-component": "error";
|
|
111
91
|
"react/preserve-manual-memoization": "error";
|
|
@@ -127,5 +107,37 @@ export declare const reactConfig: {
|
|
|
127
107
|
"react/void-dom-elements-no-children": "error";
|
|
128
108
|
"react/void-use-memo": "error";
|
|
129
109
|
"react/jsx-handler-names": "off";
|
|
110
|
+
"react/only-export-components": ["warn", {
|
|
111
|
+
allowConstantExport: true;
|
|
112
|
+
}];
|
|
113
|
+
"react/button-has-type": ["off"];
|
|
114
|
+
"react/checked-requires-onchange-or-readonly": ["off"];
|
|
115
|
+
"react/display-name": ["off"];
|
|
116
|
+
"react/forbid-component-props": ["off"];
|
|
117
|
+
"react/forbid-dom-props": ["off"];
|
|
118
|
+
"react/forbid-elements": ["off"];
|
|
119
|
+
"react/jsx-boolean-value": ["error", "never"];
|
|
120
|
+
"react/jsx-filename-extension": ["error", {
|
|
121
|
+
extensions: string[];
|
|
122
|
+
}];
|
|
123
|
+
"react/jsx-max-depth": ["off"];
|
|
124
|
+
"react/jsx-no-literals": ["off"];
|
|
125
|
+
"react/jsx-no-script-url": ["error", {
|
|
126
|
+
name: string;
|
|
127
|
+
props: string[];
|
|
128
|
+
}[]];
|
|
129
|
+
"react/jsx-pascal-case": ["error", {
|
|
130
|
+
allowAllCaps: true;
|
|
131
|
+
}];
|
|
132
|
+
"react/jsx-props-no-spreading": [number, {
|
|
133
|
+
explicitSpread: "ignore";
|
|
134
|
+
}];
|
|
135
|
+
"react/no-array-index-key": ["off"];
|
|
136
|
+
"react/no-danger": ["warn"];
|
|
137
|
+
"react/no-did-mount-set-state": ["off"];
|
|
138
|
+
"react/no-multi-comp": ["off"];
|
|
139
|
+
"react/no-object-type-as-default-prop": ["off"];
|
|
140
|
+
"react/no-redundant-should-component-update": ["off"];
|
|
141
|
+
"react/no-unsafe": ["off"];
|
|
130
142
|
};
|
|
131
143
|
};
|