@4mbl/lint 1.0.0-beta.3 → 1.0.0-beta.31
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/CHANGELOG.md +184 -0
- package/bin/cli.js +31 -3
- package/dist/base.d.ts +302 -212
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +161 -108
- package/dist/base.js.map +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +23 -0
- package/dist/config.js.map +1 -0
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +49 -37
- package/dist/next.js.map +1 -1
- package/dist/node.d.ts +2 -248
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +11 -3
- package/dist/node.js.map +1 -1
- package/dist/react.d.ts +2 -360
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +55 -31
- package/dist/react.js.map +1 -1
- package/package.json +5 -10
package/dist/node.d.ts
CHANGED
|
@@ -1,253 +1,7 @@
|
|
|
1
1
|
import { defineConfig, type OxlintConfig } from 'oxlint';
|
|
2
2
|
type NodeOptions = {};
|
|
3
|
-
declare function nodeConfig(
|
|
4
|
-
extends: {
|
|
5
|
-
plugins: ("unicorn" | "typescript")[];
|
|
6
|
-
jsPlugins: never[];
|
|
7
|
-
categories: {
|
|
8
|
-
correctness: "off";
|
|
9
|
-
};
|
|
10
|
-
env: {
|
|
11
|
-
builtin: true;
|
|
12
|
-
};
|
|
13
|
-
options: {
|
|
14
|
-
typeAware: true;
|
|
15
|
-
};
|
|
16
|
-
rules: {
|
|
17
|
-
'constructor-super': "error";
|
|
18
|
-
'for-direction': "error";
|
|
19
|
-
'getter-return': "error";
|
|
20
|
-
'no-async-promise-executor': "error";
|
|
21
|
-
'no-case-declarations': "error";
|
|
22
|
-
'no-class-assign': "error";
|
|
23
|
-
'no-compare-neg-zero': "error";
|
|
24
|
-
'no-cond-assign': "error";
|
|
25
|
-
'no-const-assign': "error";
|
|
26
|
-
'no-constant-binary-expression': "error";
|
|
27
|
-
'no-constant-condition': "error";
|
|
28
|
-
'no-control-regex': "error";
|
|
29
|
-
'no-debugger': "error";
|
|
30
|
-
'no-delete-var': "error";
|
|
31
|
-
'no-dupe-class-members': "error";
|
|
32
|
-
'no-dupe-else-if': "error";
|
|
33
|
-
'no-dupe-keys': "error";
|
|
34
|
-
'no-duplicate-case': "error";
|
|
35
|
-
'no-empty': "error";
|
|
36
|
-
'no-empty-character-class': "error";
|
|
37
|
-
'no-empty-pattern': "error";
|
|
38
|
-
'no-empty-static-block': "error";
|
|
39
|
-
'no-ex-assign': "error";
|
|
40
|
-
'no-extra-boolean-cast': "error";
|
|
41
|
-
'no-fallthrough': "error";
|
|
42
|
-
'no-func-assign': "error";
|
|
43
|
-
'no-global-assign': "error";
|
|
44
|
-
'no-import-assign': "error";
|
|
45
|
-
'no-invalid-regexp': "error";
|
|
46
|
-
'no-irregular-whitespace': "error";
|
|
47
|
-
'no-loss-of-precision': "error";
|
|
48
|
-
'no-misleading-character-class': "error";
|
|
49
|
-
'no-new-native-nonconstructor': "error";
|
|
50
|
-
'no-nonoctal-decimal-escape': "error";
|
|
51
|
-
'no-obj-calls': "error";
|
|
52
|
-
'no-prototype-builtins': "error";
|
|
53
|
-
'no-redeclare': "error";
|
|
54
|
-
'no-regex-spaces': "error";
|
|
55
|
-
'no-self-assign': "error";
|
|
56
|
-
'no-setter-return': "error";
|
|
57
|
-
'no-shadow-restricted-names': "error";
|
|
58
|
-
'no-sparse-arrays': "error";
|
|
59
|
-
'no-this-before-super': "error";
|
|
60
|
-
'no-undef': "error";
|
|
61
|
-
'no-unexpected-multiline': "error";
|
|
62
|
-
'no-unreachable': "error";
|
|
63
|
-
'no-unsafe-finally': "error";
|
|
64
|
-
'no-unsafe-negation': "error";
|
|
65
|
-
'no-unsafe-optional-chaining': "error";
|
|
66
|
-
'no-unused-labels': "error";
|
|
67
|
-
'no-unused-private-class-members': "error";
|
|
68
|
-
'no-unused-vars': "warn";
|
|
69
|
-
'no-useless-backreference': "error";
|
|
70
|
-
'no-useless-catch': "error";
|
|
71
|
-
'no-useless-escape': "error";
|
|
72
|
-
'no-with': "error";
|
|
73
|
-
'require-yield': "error";
|
|
74
|
-
'use-isnan': "error";
|
|
75
|
-
'valid-typeof': "error";
|
|
76
|
-
'@typescript-eslint/ban-ts-comment': "error";
|
|
77
|
-
'no-array-constructor': "error";
|
|
78
|
-
'@typescript-eslint/no-duplicate-enum-values': "error";
|
|
79
|
-
'@typescript-eslint/no-empty-object-type': "error";
|
|
80
|
-
'@typescript-eslint/no-explicit-any': "error";
|
|
81
|
-
'@typescript-eslint/no-extra-non-null-assertion': "error";
|
|
82
|
-
'@typescript-eslint/no-misused-new': "error";
|
|
83
|
-
'@typescript-eslint/no-namespace': "error";
|
|
84
|
-
'@typescript-eslint/no-non-null-asserted-optional-chain': "error";
|
|
85
|
-
'@typescript-eslint/no-require-imports': "error";
|
|
86
|
-
'@typescript-eslint/no-this-alias': "error";
|
|
87
|
-
'@typescript-eslint/no-unnecessary-type-constraint': "error";
|
|
88
|
-
'@typescript-eslint/no-unsafe-declaration-merging': "error";
|
|
89
|
-
'@typescript-eslint/no-unsafe-function-type': "error";
|
|
90
|
-
'no-unused-expressions': "warn";
|
|
91
|
-
'@typescript-eslint/no-wrapper-object-types': "error";
|
|
92
|
-
'@typescript-eslint/prefer-as-const': "error";
|
|
93
|
-
'@typescript-eslint/prefer-namespace-keyword': "error";
|
|
94
|
-
'@typescript-eslint/triple-slash-reference': "error";
|
|
95
|
-
};
|
|
96
|
-
overrides: {
|
|
97
|
-
files: string[];
|
|
98
|
-
rules: {
|
|
99
|
-
'constructor-super': "off";
|
|
100
|
-
'getter-return': "off";
|
|
101
|
-
'no-class-assign': "off";
|
|
102
|
-
'no-const-assign': "off";
|
|
103
|
-
'no-dupe-class-members': "off";
|
|
104
|
-
'no-dupe-keys': "off";
|
|
105
|
-
'no-func-assign': "off";
|
|
106
|
-
'no-import-assign': "off";
|
|
107
|
-
'no-new-native-nonconstructor': "off";
|
|
108
|
-
'no-obj-calls': "off";
|
|
109
|
-
'no-redeclare': "off";
|
|
110
|
-
'no-setter-return': "off";
|
|
111
|
-
'no-this-before-super': "off";
|
|
112
|
-
'no-undef': "off";
|
|
113
|
-
'no-unreachable': "off";
|
|
114
|
-
'no-unsafe-negation': "off";
|
|
115
|
-
'no-var': "error";
|
|
116
|
-
'no-with': "off";
|
|
117
|
-
'prefer-const': "error";
|
|
118
|
-
'prefer-rest-params': "error";
|
|
119
|
-
'prefer-spread': "error";
|
|
120
|
-
};
|
|
121
|
-
}[];
|
|
122
|
-
}[];
|
|
123
|
-
env: {
|
|
124
|
-
node: true;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
3
|
+
declare function nodeConfig(options?: Partial<NodeOptions>): OxlintConfig;
|
|
127
4
|
export { type OxlintConfig, defineConfig, nodeConfig };
|
|
128
|
-
declare const _default:
|
|
129
|
-
extends: {
|
|
130
|
-
plugins: ("unicorn" | "typescript")[];
|
|
131
|
-
jsPlugins: never[];
|
|
132
|
-
categories: {
|
|
133
|
-
correctness: "off";
|
|
134
|
-
};
|
|
135
|
-
env: {
|
|
136
|
-
builtin: true;
|
|
137
|
-
};
|
|
138
|
-
options: {
|
|
139
|
-
typeAware: true;
|
|
140
|
-
};
|
|
141
|
-
rules: {
|
|
142
|
-
'constructor-super': "error";
|
|
143
|
-
'for-direction': "error";
|
|
144
|
-
'getter-return': "error";
|
|
145
|
-
'no-async-promise-executor': "error";
|
|
146
|
-
'no-case-declarations': "error";
|
|
147
|
-
'no-class-assign': "error";
|
|
148
|
-
'no-compare-neg-zero': "error";
|
|
149
|
-
'no-cond-assign': "error";
|
|
150
|
-
'no-const-assign': "error";
|
|
151
|
-
'no-constant-binary-expression': "error";
|
|
152
|
-
'no-constant-condition': "error";
|
|
153
|
-
'no-control-regex': "error";
|
|
154
|
-
'no-debugger': "error";
|
|
155
|
-
'no-delete-var': "error";
|
|
156
|
-
'no-dupe-class-members': "error";
|
|
157
|
-
'no-dupe-else-if': "error";
|
|
158
|
-
'no-dupe-keys': "error";
|
|
159
|
-
'no-duplicate-case': "error";
|
|
160
|
-
'no-empty': "error";
|
|
161
|
-
'no-empty-character-class': "error";
|
|
162
|
-
'no-empty-pattern': "error";
|
|
163
|
-
'no-empty-static-block': "error";
|
|
164
|
-
'no-ex-assign': "error";
|
|
165
|
-
'no-extra-boolean-cast': "error";
|
|
166
|
-
'no-fallthrough': "error";
|
|
167
|
-
'no-func-assign': "error";
|
|
168
|
-
'no-global-assign': "error";
|
|
169
|
-
'no-import-assign': "error";
|
|
170
|
-
'no-invalid-regexp': "error";
|
|
171
|
-
'no-irregular-whitespace': "error";
|
|
172
|
-
'no-loss-of-precision': "error";
|
|
173
|
-
'no-misleading-character-class': "error";
|
|
174
|
-
'no-new-native-nonconstructor': "error";
|
|
175
|
-
'no-nonoctal-decimal-escape': "error";
|
|
176
|
-
'no-obj-calls': "error";
|
|
177
|
-
'no-prototype-builtins': "error";
|
|
178
|
-
'no-redeclare': "error";
|
|
179
|
-
'no-regex-spaces': "error";
|
|
180
|
-
'no-self-assign': "error";
|
|
181
|
-
'no-setter-return': "error";
|
|
182
|
-
'no-shadow-restricted-names': "error";
|
|
183
|
-
'no-sparse-arrays': "error";
|
|
184
|
-
'no-this-before-super': "error";
|
|
185
|
-
'no-undef': "error";
|
|
186
|
-
'no-unexpected-multiline': "error";
|
|
187
|
-
'no-unreachable': "error";
|
|
188
|
-
'no-unsafe-finally': "error";
|
|
189
|
-
'no-unsafe-negation': "error";
|
|
190
|
-
'no-unsafe-optional-chaining': "error";
|
|
191
|
-
'no-unused-labels': "error";
|
|
192
|
-
'no-unused-private-class-members': "error";
|
|
193
|
-
'no-unused-vars': "warn";
|
|
194
|
-
'no-useless-backreference': "error";
|
|
195
|
-
'no-useless-catch': "error";
|
|
196
|
-
'no-useless-escape': "error";
|
|
197
|
-
'no-with': "error";
|
|
198
|
-
'require-yield': "error";
|
|
199
|
-
'use-isnan': "error";
|
|
200
|
-
'valid-typeof': "error";
|
|
201
|
-
'@typescript-eslint/ban-ts-comment': "error";
|
|
202
|
-
'no-array-constructor': "error";
|
|
203
|
-
'@typescript-eslint/no-duplicate-enum-values': "error";
|
|
204
|
-
'@typescript-eslint/no-empty-object-type': "error";
|
|
205
|
-
'@typescript-eslint/no-explicit-any': "error";
|
|
206
|
-
'@typescript-eslint/no-extra-non-null-assertion': "error";
|
|
207
|
-
'@typescript-eslint/no-misused-new': "error";
|
|
208
|
-
'@typescript-eslint/no-namespace': "error";
|
|
209
|
-
'@typescript-eslint/no-non-null-asserted-optional-chain': "error";
|
|
210
|
-
'@typescript-eslint/no-require-imports': "error";
|
|
211
|
-
'@typescript-eslint/no-this-alias': "error";
|
|
212
|
-
'@typescript-eslint/no-unnecessary-type-constraint': "error";
|
|
213
|
-
'@typescript-eslint/no-unsafe-declaration-merging': "error";
|
|
214
|
-
'@typescript-eslint/no-unsafe-function-type': "error";
|
|
215
|
-
'no-unused-expressions': "warn";
|
|
216
|
-
'@typescript-eslint/no-wrapper-object-types': "error";
|
|
217
|
-
'@typescript-eslint/prefer-as-const': "error";
|
|
218
|
-
'@typescript-eslint/prefer-namespace-keyword': "error";
|
|
219
|
-
'@typescript-eslint/triple-slash-reference': "error";
|
|
220
|
-
};
|
|
221
|
-
overrides: {
|
|
222
|
-
files: string[];
|
|
223
|
-
rules: {
|
|
224
|
-
'constructor-super': "off";
|
|
225
|
-
'getter-return': "off";
|
|
226
|
-
'no-class-assign': "off";
|
|
227
|
-
'no-const-assign': "off";
|
|
228
|
-
'no-dupe-class-members': "off";
|
|
229
|
-
'no-dupe-keys': "off";
|
|
230
|
-
'no-func-assign': "off";
|
|
231
|
-
'no-import-assign': "off";
|
|
232
|
-
'no-new-native-nonconstructor': "off";
|
|
233
|
-
'no-obj-calls': "off";
|
|
234
|
-
'no-redeclare': "off";
|
|
235
|
-
'no-setter-return': "off";
|
|
236
|
-
'no-this-before-super': "off";
|
|
237
|
-
'no-undef': "off";
|
|
238
|
-
'no-unreachable': "off";
|
|
239
|
-
'no-unsafe-negation': "off";
|
|
240
|
-
'no-var': "error";
|
|
241
|
-
'no-with': "off";
|
|
242
|
-
'prefer-const': "error";
|
|
243
|
-
'prefer-rest-params': "error";
|
|
244
|
-
'prefer-spread': "error";
|
|
245
|
-
};
|
|
246
|
-
}[];
|
|
247
|
-
}[];
|
|
248
|
-
env: {
|
|
249
|
-
node: true;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
5
|
+
declare const _default: OxlintConfig;
|
|
252
6
|
export default _default;
|
|
253
7
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAIzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,gBAkBjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/node.js
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { defineConfig } from 'oxlint';
|
|
2
2
|
import { baseConfig } from './base.js';
|
|
3
|
+
import { extendConfig } from './config.js';
|
|
3
4
|
// const DEFAULT_OPTIONS: NodeOptions = {};
|
|
4
|
-
function nodeConfig(
|
|
5
|
+
function nodeConfig(options) {
|
|
5
6
|
// const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
const base = baseConfig(options);
|
|
8
|
+
return extendConfig(base, {
|
|
8
9
|
env: {
|
|
9
10
|
node: true,
|
|
10
11
|
},
|
|
12
|
+
rules: {
|
|
13
|
+
'eslint/no-underscore-dangle': [
|
|
14
|
+
'warn',
|
|
15
|
+
{ allow: ['__dirname', '__filename'] },
|
|
16
|
+
],
|
|
17
|
+
'no-nodejs-modules': 'off',
|
|
18
|
+
},
|
|
11
19
|
});
|
|
12
20
|
}
|
|
13
21
|
export { defineConfig, nodeConfig };
|
package/dist/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,2CAA2C;AAE3C,SAAS,UAAU,CAAC,OAA8B;IAChD,mDAAmD;IAEnD,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAEjC,OAAO,YAAY,CAAC,IAAI,EAAE;QACxB,GAAG,EAAE;YACH,IAAI,EAAE,IAAI;SACX;QAED,KAAK,EAAE;YACL,6BAA6B,EAAE;gBAC7B,MAAM;gBACN,EAAE,KAAK,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,EAAE;aACvC;YACD,mBAAmB,EAAE,KAAK;SAC3B;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,eAAe,UAAU,EAAE,CAAC"}
|
package/dist/react.d.ts
CHANGED
|
@@ -1,365 +1,7 @@
|
|
|
1
1
|
import { defineConfig, type OxlintConfig } from 'oxlint';
|
|
2
2
|
export type ReactOptions = {};
|
|
3
|
-
declare function reactConfig(
|
|
4
|
-
extends: {
|
|
5
|
-
plugins: ("unicorn" | "typescript")[];
|
|
6
|
-
jsPlugins: never[];
|
|
7
|
-
categories: {
|
|
8
|
-
correctness: "off";
|
|
9
|
-
};
|
|
10
|
-
env: {
|
|
11
|
-
builtin: true;
|
|
12
|
-
};
|
|
13
|
-
options: {
|
|
14
|
-
typeAware: true;
|
|
15
|
-
};
|
|
16
|
-
rules: {
|
|
17
|
-
'constructor-super': "error";
|
|
18
|
-
'for-direction': "error";
|
|
19
|
-
'getter-return': "error";
|
|
20
|
-
'no-async-promise-executor': "error";
|
|
21
|
-
'no-case-declarations': "error";
|
|
22
|
-
'no-class-assign': "error";
|
|
23
|
-
'no-compare-neg-zero': "error";
|
|
24
|
-
'no-cond-assign': "error";
|
|
25
|
-
'no-const-assign': "error";
|
|
26
|
-
'no-constant-binary-expression': "error";
|
|
27
|
-
'no-constant-condition': "error";
|
|
28
|
-
'no-control-regex': "error";
|
|
29
|
-
'no-debugger': "error";
|
|
30
|
-
'no-delete-var': "error";
|
|
31
|
-
'no-dupe-class-members': "error";
|
|
32
|
-
'no-dupe-else-if': "error";
|
|
33
|
-
'no-dupe-keys': "error";
|
|
34
|
-
'no-duplicate-case': "error";
|
|
35
|
-
'no-empty': "error";
|
|
36
|
-
'no-empty-character-class': "error";
|
|
37
|
-
'no-empty-pattern': "error";
|
|
38
|
-
'no-empty-static-block': "error";
|
|
39
|
-
'no-ex-assign': "error";
|
|
40
|
-
'no-extra-boolean-cast': "error";
|
|
41
|
-
'no-fallthrough': "error";
|
|
42
|
-
'no-func-assign': "error";
|
|
43
|
-
'no-global-assign': "error";
|
|
44
|
-
'no-import-assign': "error";
|
|
45
|
-
'no-invalid-regexp': "error";
|
|
46
|
-
'no-irregular-whitespace': "error";
|
|
47
|
-
'no-loss-of-precision': "error";
|
|
48
|
-
'no-misleading-character-class': "error";
|
|
49
|
-
'no-new-native-nonconstructor': "error";
|
|
50
|
-
'no-nonoctal-decimal-escape': "error";
|
|
51
|
-
'no-obj-calls': "error";
|
|
52
|
-
'no-prototype-builtins': "error";
|
|
53
|
-
'no-redeclare': "error";
|
|
54
|
-
'no-regex-spaces': "error";
|
|
55
|
-
'no-self-assign': "error";
|
|
56
|
-
'no-setter-return': "error";
|
|
57
|
-
'no-shadow-restricted-names': "error";
|
|
58
|
-
'no-sparse-arrays': "error";
|
|
59
|
-
'no-this-before-super': "error";
|
|
60
|
-
'no-undef': "error";
|
|
61
|
-
'no-unexpected-multiline': "error";
|
|
62
|
-
'no-unreachable': "error";
|
|
63
|
-
'no-unsafe-finally': "error";
|
|
64
|
-
'no-unsafe-negation': "error";
|
|
65
|
-
'no-unsafe-optional-chaining': "error";
|
|
66
|
-
'no-unused-labels': "error";
|
|
67
|
-
'no-unused-private-class-members': "error";
|
|
68
|
-
'no-unused-vars': "warn";
|
|
69
|
-
'no-useless-backreference': "error";
|
|
70
|
-
'no-useless-catch': "error";
|
|
71
|
-
'no-useless-escape': "error";
|
|
72
|
-
'no-with': "error";
|
|
73
|
-
'require-yield': "error";
|
|
74
|
-
'use-isnan': "error";
|
|
75
|
-
'valid-typeof': "error";
|
|
76
|
-
'@typescript-eslint/ban-ts-comment': "error";
|
|
77
|
-
'no-array-constructor': "error";
|
|
78
|
-
'@typescript-eslint/no-duplicate-enum-values': "error";
|
|
79
|
-
'@typescript-eslint/no-empty-object-type': "error";
|
|
80
|
-
'@typescript-eslint/no-explicit-any': "error";
|
|
81
|
-
'@typescript-eslint/no-extra-non-null-assertion': "error";
|
|
82
|
-
'@typescript-eslint/no-misused-new': "error";
|
|
83
|
-
'@typescript-eslint/no-namespace': "error";
|
|
84
|
-
'@typescript-eslint/no-non-null-asserted-optional-chain': "error";
|
|
85
|
-
'@typescript-eslint/no-require-imports': "error";
|
|
86
|
-
'@typescript-eslint/no-this-alias': "error";
|
|
87
|
-
'@typescript-eslint/no-unnecessary-type-constraint': "error";
|
|
88
|
-
'@typescript-eslint/no-unsafe-declaration-merging': "error";
|
|
89
|
-
'@typescript-eslint/no-unsafe-function-type': "error";
|
|
90
|
-
'no-unused-expressions': "warn";
|
|
91
|
-
'@typescript-eslint/no-wrapper-object-types': "error";
|
|
92
|
-
'@typescript-eslint/prefer-as-const': "error";
|
|
93
|
-
'@typescript-eslint/prefer-namespace-keyword': "error";
|
|
94
|
-
'@typescript-eslint/triple-slash-reference': "error";
|
|
95
|
-
};
|
|
96
|
-
overrides: {
|
|
97
|
-
files: string[];
|
|
98
|
-
rules: {
|
|
99
|
-
'constructor-super': "off";
|
|
100
|
-
'getter-return': "off";
|
|
101
|
-
'no-class-assign': "off";
|
|
102
|
-
'no-const-assign': "off";
|
|
103
|
-
'no-dupe-class-members': "off";
|
|
104
|
-
'no-dupe-keys': "off";
|
|
105
|
-
'no-func-assign': "off";
|
|
106
|
-
'no-import-assign': "off";
|
|
107
|
-
'no-new-native-nonconstructor': "off";
|
|
108
|
-
'no-obj-calls': "off";
|
|
109
|
-
'no-redeclare': "off";
|
|
110
|
-
'no-setter-return': "off";
|
|
111
|
-
'no-this-before-super': "off";
|
|
112
|
-
'no-undef': "off";
|
|
113
|
-
'no-unreachable': "off";
|
|
114
|
-
'no-unsafe-negation': "off";
|
|
115
|
-
'no-var': "error";
|
|
116
|
-
'no-with': "off";
|
|
117
|
-
'prefer-const': "error";
|
|
118
|
-
'prefer-rest-params': "error";
|
|
119
|
-
'prefer-spread': "error";
|
|
120
|
-
};
|
|
121
|
-
}[];
|
|
122
|
-
}[];
|
|
123
|
-
plugins: "react"[];
|
|
124
|
-
jsPlugins: {
|
|
125
|
-
name: string;
|
|
126
|
-
specifier: string;
|
|
127
|
-
}[];
|
|
128
|
-
rules: {
|
|
129
|
-
'react-hooks-js/rules-of-hooks': "error";
|
|
130
|
-
'react-hooks-js/exhaustive-deps': "warn";
|
|
131
|
-
'react-hooks-js/set-state-in-effect': "warn";
|
|
132
|
-
'react-refresh-js/only-export-components': "error";
|
|
133
|
-
'react-compiler-js/react-compiler': "error";
|
|
134
|
-
};
|
|
135
|
-
overrides: {
|
|
136
|
-
files: string[];
|
|
137
|
-
rules: {
|
|
138
|
-
'react/display-name': "error";
|
|
139
|
-
'react/jsx-key': "error";
|
|
140
|
-
'react/jsx-no-comment-textnodes': "error";
|
|
141
|
-
'react/jsx-no-duplicate-props': "error";
|
|
142
|
-
'react/jsx-no-target-blank': "off";
|
|
143
|
-
'react/jsx-no-undef': "error";
|
|
144
|
-
'react/no-children-prop': "error";
|
|
145
|
-
'react/no-danger-with-children': "error";
|
|
146
|
-
'react/no-direct-mutation-state': "error";
|
|
147
|
-
'react/no-find-dom-node': "error";
|
|
148
|
-
'react/no-is-mounted': "error";
|
|
149
|
-
'react/no-render-return-value': "error";
|
|
150
|
-
'react/no-string-refs': "error";
|
|
151
|
-
'react/no-unescaped-entities': "error";
|
|
152
|
-
'react/no-unknown-property': "off";
|
|
153
|
-
'react/no-unsafe': "off";
|
|
154
|
-
'react/react-in-jsx-scope': "off";
|
|
155
|
-
'react/require-render-return': "error";
|
|
156
|
-
'import/no-anonymous-default-export': "warn";
|
|
157
|
-
'jsx-a11y/alt-text': (string | {
|
|
158
|
-
elements: string[];
|
|
159
|
-
img: string[];
|
|
160
|
-
})[];
|
|
161
|
-
'jsx-a11y/aria-props': "warn";
|
|
162
|
-
'jsx-a11y/aria-proptypes': "warn";
|
|
163
|
-
'jsx-a11y/aria-unsupported-elements': "warn";
|
|
164
|
-
'jsx-a11y/role-has-required-aria-props': "warn";
|
|
165
|
-
'jsx-a11y/role-supports-aria-props': "warn";
|
|
166
|
-
};
|
|
167
|
-
globals: {
|
|
168
|
-
AudioWorkletGlobalScope: "readonly";
|
|
169
|
-
AudioWorkletProcessor: "readonly";
|
|
170
|
-
currentFrame: "readonly";
|
|
171
|
-
currentTime: "readonly";
|
|
172
|
-
registerProcessor: "readonly";
|
|
173
|
-
sampleRate: "readonly";
|
|
174
|
-
WorkletGlobalScope: "readonly";
|
|
175
|
-
};
|
|
176
|
-
plugins: ("import" | "jsx-a11y")[];
|
|
177
|
-
env: {
|
|
178
|
-
browser: true;
|
|
179
|
-
node: true;
|
|
180
|
-
};
|
|
181
|
-
}[];
|
|
182
|
-
};
|
|
3
|
+
declare function reactConfig(options?: Partial<ReactOptions>): OxlintConfig;
|
|
183
4
|
export { type OxlintConfig, defineConfig, reactConfig };
|
|
184
|
-
declare const _default:
|
|
185
|
-
extends: {
|
|
186
|
-
plugins: ("unicorn" | "typescript")[];
|
|
187
|
-
jsPlugins: never[];
|
|
188
|
-
categories: {
|
|
189
|
-
correctness: "off";
|
|
190
|
-
};
|
|
191
|
-
env: {
|
|
192
|
-
builtin: true;
|
|
193
|
-
};
|
|
194
|
-
options: {
|
|
195
|
-
typeAware: true;
|
|
196
|
-
};
|
|
197
|
-
rules: {
|
|
198
|
-
'constructor-super': "error";
|
|
199
|
-
'for-direction': "error";
|
|
200
|
-
'getter-return': "error";
|
|
201
|
-
'no-async-promise-executor': "error";
|
|
202
|
-
'no-case-declarations': "error";
|
|
203
|
-
'no-class-assign': "error";
|
|
204
|
-
'no-compare-neg-zero': "error";
|
|
205
|
-
'no-cond-assign': "error";
|
|
206
|
-
'no-const-assign': "error";
|
|
207
|
-
'no-constant-binary-expression': "error";
|
|
208
|
-
'no-constant-condition': "error";
|
|
209
|
-
'no-control-regex': "error";
|
|
210
|
-
'no-debugger': "error";
|
|
211
|
-
'no-delete-var': "error";
|
|
212
|
-
'no-dupe-class-members': "error";
|
|
213
|
-
'no-dupe-else-if': "error";
|
|
214
|
-
'no-dupe-keys': "error";
|
|
215
|
-
'no-duplicate-case': "error";
|
|
216
|
-
'no-empty': "error";
|
|
217
|
-
'no-empty-character-class': "error";
|
|
218
|
-
'no-empty-pattern': "error";
|
|
219
|
-
'no-empty-static-block': "error";
|
|
220
|
-
'no-ex-assign': "error";
|
|
221
|
-
'no-extra-boolean-cast': "error";
|
|
222
|
-
'no-fallthrough': "error";
|
|
223
|
-
'no-func-assign': "error";
|
|
224
|
-
'no-global-assign': "error";
|
|
225
|
-
'no-import-assign': "error";
|
|
226
|
-
'no-invalid-regexp': "error";
|
|
227
|
-
'no-irregular-whitespace': "error";
|
|
228
|
-
'no-loss-of-precision': "error";
|
|
229
|
-
'no-misleading-character-class': "error";
|
|
230
|
-
'no-new-native-nonconstructor': "error";
|
|
231
|
-
'no-nonoctal-decimal-escape': "error";
|
|
232
|
-
'no-obj-calls': "error";
|
|
233
|
-
'no-prototype-builtins': "error";
|
|
234
|
-
'no-redeclare': "error";
|
|
235
|
-
'no-regex-spaces': "error";
|
|
236
|
-
'no-self-assign': "error";
|
|
237
|
-
'no-setter-return': "error";
|
|
238
|
-
'no-shadow-restricted-names': "error";
|
|
239
|
-
'no-sparse-arrays': "error";
|
|
240
|
-
'no-this-before-super': "error";
|
|
241
|
-
'no-undef': "error";
|
|
242
|
-
'no-unexpected-multiline': "error";
|
|
243
|
-
'no-unreachable': "error";
|
|
244
|
-
'no-unsafe-finally': "error";
|
|
245
|
-
'no-unsafe-negation': "error";
|
|
246
|
-
'no-unsafe-optional-chaining': "error";
|
|
247
|
-
'no-unused-labels': "error";
|
|
248
|
-
'no-unused-private-class-members': "error";
|
|
249
|
-
'no-unused-vars': "warn";
|
|
250
|
-
'no-useless-backreference': "error";
|
|
251
|
-
'no-useless-catch': "error";
|
|
252
|
-
'no-useless-escape': "error";
|
|
253
|
-
'no-with': "error";
|
|
254
|
-
'require-yield': "error";
|
|
255
|
-
'use-isnan': "error";
|
|
256
|
-
'valid-typeof': "error";
|
|
257
|
-
'@typescript-eslint/ban-ts-comment': "error";
|
|
258
|
-
'no-array-constructor': "error";
|
|
259
|
-
'@typescript-eslint/no-duplicate-enum-values': "error";
|
|
260
|
-
'@typescript-eslint/no-empty-object-type': "error";
|
|
261
|
-
'@typescript-eslint/no-explicit-any': "error";
|
|
262
|
-
'@typescript-eslint/no-extra-non-null-assertion': "error";
|
|
263
|
-
'@typescript-eslint/no-misused-new': "error";
|
|
264
|
-
'@typescript-eslint/no-namespace': "error";
|
|
265
|
-
'@typescript-eslint/no-non-null-asserted-optional-chain': "error";
|
|
266
|
-
'@typescript-eslint/no-require-imports': "error";
|
|
267
|
-
'@typescript-eslint/no-this-alias': "error";
|
|
268
|
-
'@typescript-eslint/no-unnecessary-type-constraint': "error";
|
|
269
|
-
'@typescript-eslint/no-unsafe-declaration-merging': "error";
|
|
270
|
-
'@typescript-eslint/no-unsafe-function-type': "error";
|
|
271
|
-
'no-unused-expressions': "warn";
|
|
272
|
-
'@typescript-eslint/no-wrapper-object-types': "error";
|
|
273
|
-
'@typescript-eslint/prefer-as-const': "error";
|
|
274
|
-
'@typescript-eslint/prefer-namespace-keyword': "error";
|
|
275
|
-
'@typescript-eslint/triple-slash-reference': "error";
|
|
276
|
-
};
|
|
277
|
-
overrides: {
|
|
278
|
-
files: string[];
|
|
279
|
-
rules: {
|
|
280
|
-
'constructor-super': "off";
|
|
281
|
-
'getter-return': "off";
|
|
282
|
-
'no-class-assign': "off";
|
|
283
|
-
'no-const-assign': "off";
|
|
284
|
-
'no-dupe-class-members': "off";
|
|
285
|
-
'no-dupe-keys': "off";
|
|
286
|
-
'no-func-assign': "off";
|
|
287
|
-
'no-import-assign': "off";
|
|
288
|
-
'no-new-native-nonconstructor': "off";
|
|
289
|
-
'no-obj-calls': "off";
|
|
290
|
-
'no-redeclare': "off";
|
|
291
|
-
'no-setter-return': "off";
|
|
292
|
-
'no-this-before-super': "off";
|
|
293
|
-
'no-undef': "off";
|
|
294
|
-
'no-unreachable': "off";
|
|
295
|
-
'no-unsafe-negation': "off";
|
|
296
|
-
'no-var': "error";
|
|
297
|
-
'no-with': "off";
|
|
298
|
-
'prefer-const': "error";
|
|
299
|
-
'prefer-rest-params': "error";
|
|
300
|
-
'prefer-spread': "error";
|
|
301
|
-
};
|
|
302
|
-
}[];
|
|
303
|
-
}[];
|
|
304
|
-
plugins: "react"[];
|
|
305
|
-
jsPlugins: {
|
|
306
|
-
name: string;
|
|
307
|
-
specifier: string;
|
|
308
|
-
}[];
|
|
309
|
-
rules: {
|
|
310
|
-
'react-hooks-js/rules-of-hooks': "error";
|
|
311
|
-
'react-hooks-js/exhaustive-deps': "warn";
|
|
312
|
-
'react-hooks-js/set-state-in-effect': "warn";
|
|
313
|
-
'react-refresh-js/only-export-components': "error";
|
|
314
|
-
'react-compiler-js/react-compiler': "error";
|
|
315
|
-
};
|
|
316
|
-
overrides: {
|
|
317
|
-
files: string[];
|
|
318
|
-
rules: {
|
|
319
|
-
'react/display-name': "error";
|
|
320
|
-
'react/jsx-key': "error";
|
|
321
|
-
'react/jsx-no-comment-textnodes': "error";
|
|
322
|
-
'react/jsx-no-duplicate-props': "error";
|
|
323
|
-
'react/jsx-no-target-blank': "off";
|
|
324
|
-
'react/jsx-no-undef': "error";
|
|
325
|
-
'react/no-children-prop': "error";
|
|
326
|
-
'react/no-danger-with-children': "error";
|
|
327
|
-
'react/no-direct-mutation-state': "error";
|
|
328
|
-
'react/no-find-dom-node': "error";
|
|
329
|
-
'react/no-is-mounted': "error";
|
|
330
|
-
'react/no-render-return-value': "error";
|
|
331
|
-
'react/no-string-refs': "error";
|
|
332
|
-
'react/no-unescaped-entities': "error";
|
|
333
|
-
'react/no-unknown-property': "off";
|
|
334
|
-
'react/no-unsafe': "off";
|
|
335
|
-
'react/react-in-jsx-scope': "off";
|
|
336
|
-
'react/require-render-return': "error";
|
|
337
|
-
'import/no-anonymous-default-export': "warn";
|
|
338
|
-
'jsx-a11y/alt-text': (string | {
|
|
339
|
-
elements: string[];
|
|
340
|
-
img: string[];
|
|
341
|
-
})[];
|
|
342
|
-
'jsx-a11y/aria-props': "warn";
|
|
343
|
-
'jsx-a11y/aria-proptypes': "warn";
|
|
344
|
-
'jsx-a11y/aria-unsupported-elements': "warn";
|
|
345
|
-
'jsx-a11y/role-has-required-aria-props': "warn";
|
|
346
|
-
'jsx-a11y/role-supports-aria-props': "warn";
|
|
347
|
-
};
|
|
348
|
-
globals: {
|
|
349
|
-
AudioWorkletGlobalScope: "readonly";
|
|
350
|
-
AudioWorkletProcessor: "readonly";
|
|
351
|
-
currentFrame: "readonly";
|
|
352
|
-
currentTime: "readonly";
|
|
353
|
-
registerProcessor: "readonly";
|
|
354
|
-
sampleRate: "readonly";
|
|
355
|
-
WorkletGlobalScope: "readonly";
|
|
356
|
-
};
|
|
357
|
-
plugins: ("import" | "jsx-a11y")[];
|
|
358
|
-
env: {
|
|
359
|
-
browser: true;
|
|
360
|
-
node: true;
|
|
361
|
-
};
|
|
362
|
-
}[];
|
|
363
|
-
};
|
|
5
|
+
declare const _default: OxlintConfig;
|
|
364
6
|
export default _default;
|
|
365
7
|
//# sourceMappingURL=react.d.ts.map
|
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAIzD,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAI9B,iBAAS,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,gBA6FnD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
|