@4mbl/lint 0.0.0-alpha.3b86bbb
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 +164 -0
- package/README.md +132 -0
- package/bin/cli.js +44 -0
- package/dist/base.d.ts +243 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/base.js +129 -0
- package/dist/base.js.map +1 -0
- package/dist/next.d.ts +18 -0
- package/dist/next.d.ts.map +1 -0
- package/dist/next.js +64 -0
- package/dist/next.js.map +1 -0
- package/dist/node.d.ts +253 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/node.js +15 -0
- package/dist/node.js.map +1 -0
- package/dist/react.d.ts +365 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +72 -0
- package/dist/react.js.map +1 -0
- package/package.json +49 -0
package/dist/react.d.ts
ADDED
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { defineConfig, type OxlintConfig } from 'oxlint';
|
|
2
|
+
export type ReactOptions = {};
|
|
3
|
+
declare function reactConfig(_options?: Partial<ReactOptions>): {
|
|
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
|
+
};
|
|
183
|
+
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
|
+
};
|
|
364
|
+
export default _default;
|
|
365
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +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;AAGzD,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAI9B,iBAAS,WAAW,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEpD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,wBAA6B"}
|
package/dist/react.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineConfig } from 'oxlint';
|
|
2
|
+
import { baseConfig } from './base.js';
|
|
3
|
+
// const DEFAULT_OPTIONS: ReactOptions = {};
|
|
4
|
+
function reactConfig(_options) {
|
|
5
|
+
// const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
6
|
+
return defineConfig({
|
|
7
|
+
extends: [baseConfig()],
|
|
8
|
+
plugins: ['react'],
|
|
9
|
+
jsPlugins: [
|
|
10
|
+
{ name: 'react-hooks-js', specifier: 'eslint-plugin-react-hooks' },
|
|
11
|
+
{ name: 'react-refresh-js', specifier: 'eslint-plugin-react-refresh' },
|
|
12
|
+
{ name: 'react-compiler-js', specifier: 'eslint-plugin-react-compiler' },
|
|
13
|
+
],
|
|
14
|
+
rules: {
|
|
15
|
+
'react-hooks-js/rules-of-hooks': 'error',
|
|
16
|
+
'react-hooks-js/exhaustive-deps': 'warn',
|
|
17
|
+
'react-hooks-js/set-state-in-effect': 'warn',
|
|
18
|
+
'react-refresh-js/only-export-components': 'error',
|
|
19
|
+
'react-compiler-js/react-compiler': 'error',
|
|
20
|
+
},
|
|
21
|
+
overrides: [
|
|
22
|
+
{
|
|
23
|
+
files: ['**/*.{js,jsx,mjs,ts,tsx,mts,cts}'],
|
|
24
|
+
rules: {
|
|
25
|
+
'react/display-name': 'error',
|
|
26
|
+
'react/jsx-key': 'error',
|
|
27
|
+
'react/jsx-no-comment-textnodes': 'error',
|
|
28
|
+
'react/jsx-no-duplicate-props': 'error',
|
|
29
|
+
'react/jsx-no-target-blank': 'off',
|
|
30
|
+
'react/jsx-no-undef': 'error',
|
|
31
|
+
'react/no-children-prop': 'error',
|
|
32
|
+
'react/no-danger-with-children': 'error',
|
|
33
|
+
// "react/no-deprecated": "error", // not implemented yet in oxlint
|
|
34
|
+
'react/no-direct-mutation-state': 'error',
|
|
35
|
+
'react/no-find-dom-node': 'error',
|
|
36
|
+
'react/no-is-mounted': 'error',
|
|
37
|
+
'react/no-render-return-value': 'error',
|
|
38
|
+
'react/no-string-refs': 'error',
|
|
39
|
+
'react/no-unescaped-entities': 'error',
|
|
40
|
+
'react/no-unknown-property': 'off',
|
|
41
|
+
'react/no-unsafe': 'off',
|
|
42
|
+
'react/react-in-jsx-scope': 'off',
|
|
43
|
+
'react/require-render-return': 'error',
|
|
44
|
+
'import/no-anonymous-default-export': 'warn',
|
|
45
|
+
'jsx-a11y/alt-text': ['warn', { elements: ['img'], img: ['Image'] }],
|
|
46
|
+
'jsx-a11y/aria-props': 'warn',
|
|
47
|
+
'jsx-a11y/aria-proptypes': 'warn',
|
|
48
|
+
'jsx-a11y/aria-unsupported-elements': 'warn',
|
|
49
|
+
'jsx-a11y/role-has-required-aria-props': 'warn',
|
|
50
|
+
'jsx-a11y/role-supports-aria-props': 'warn',
|
|
51
|
+
},
|
|
52
|
+
globals: {
|
|
53
|
+
AudioWorkletGlobalScope: 'readonly',
|
|
54
|
+
AudioWorkletProcessor: 'readonly',
|
|
55
|
+
currentFrame: 'readonly',
|
|
56
|
+
currentTime: 'readonly',
|
|
57
|
+
registerProcessor: 'readonly',
|
|
58
|
+
sampleRate: 'readonly',
|
|
59
|
+
WorkletGlobalScope: 'readonly',
|
|
60
|
+
},
|
|
61
|
+
plugins: ['import', 'jsx-a11y'],
|
|
62
|
+
env: {
|
|
63
|
+
browser: true,
|
|
64
|
+
node: true,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
export { defineConfig, reactConfig };
|
|
71
|
+
export default reactConfig();
|
|
72
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,4CAA4C;AAE5C,SAAS,WAAW,CAAC,QAAgC;IACnD,mDAAmD;IAEnD,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,UAAU,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,SAAS,EAAE;YACT,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,2BAA2B,EAAE;YAClE,EAAE,IAAI,EAAE,kBAAkB,EAAE,SAAS,EAAE,6BAA6B,EAAE;YACtE,EAAE,IAAI,EAAE,mBAAmB,EAAE,SAAS,EAAE,8BAA8B,EAAE;SACzE;QACD,KAAK,EAAE;YACL,+BAA+B,EAAE,OAAO;YACxC,gCAAgC,EAAE,MAAM;YACxC,oCAAoC,EAAE,MAAM;YAC5C,yCAAyC,EAAE,OAAO;YAClD,kCAAkC,EAAE,OAAO;SAC5C;QACD,SAAS,EAAE;YACT;gBACE,KAAK,EAAE,CAAC,kCAAkC,CAAC;gBAC3C,KAAK,EAAE;oBACL,oBAAoB,EAAE,OAAO;oBAC7B,eAAe,EAAE,OAAO;oBACxB,gCAAgC,EAAE,OAAO;oBACzC,8BAA8B,EAAE,OAAO;oBACvC,2BAA2B,EAAE,KAAK;oBAClC,oBAAoB,EAAE,OAAO;oBAC7B,wBAAwB,EAAE,OAAO;oBACjC,+BAA+B,EAAE,OAAO;oBACxC,mEAAmE;oBACnE,gCAAgC,EAAE,OAAO;oBACzC,wBAAwB,EAAE,OAAO;oBACjC,qBAAqB,EAAE,OAAO;oBAC9B,8BAA8B,EAAE,OAAO;oBACvC,sBAAsB,EAAE,OAAO;oBAC/B,6BAA6B,EAAE,OAAO;oBACtC,2BAA2B,EAAE,KAAK;oBAClC,iBAAiB,EAAE,KAAK;oBACxB,0BAA0B,EAAE,KAAK;oBACjC,6BAA6B,EAAE,OAAO;oBACtC,oCAAoC,EAAE,MAAM;oBAC5C,mBAAmB,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;oBACpE,qBAAqB,EAAE,MAAM;oBAC7B,yBAAyB,EAAE,MAAM;oBACjC,oCAAoC,EAAE,MAAM;oBAC5C,uCAAuC,EAAE,MAAM;oBAC/C,mCAAmC,EAAE,MAAM;iBAC5C;gBACD,OAAO,EAAE;oBACP,uBAAuB,EAAE,UAAU;oBACnC,qBAAqB,EAAE,UAAU;oBACjC,YAAY,EAAE,UAAU;oBACxB,WAAW,EAAE,UAAU;oBACvB,iBAAiB,EAAE,UAAU;oBAC7B,UAAU,EAAE,UAAU;oBACtB,kBAAkB,EAAE,UAAU;iBAC/B;gBACD,OAAO,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;gBAC/B,GAAG,EAAE;oBACH,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,IAAI;iBACX;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,eAAe,WAAW,EAAE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@4mbl/lint",
|
|
3
|
+
"version": "0.0.0-alpha.3b86bbb",
|
|
4
|
+
"description": "Linting configuration for various environments.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"author": "4mbl",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/4mbl/config/tree/main/packages/lint#readme",
|
|
9
|
+
"exports": {
|
|
10
|
+
"./*": {
|
|
11
|
+
"types": "./dist/*.d.ts",
|
|
12
|
+
"development": "./src/*.ts",
|
|
13
|
+
"default": "./dist/*.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"bin": {
|
|
17
|
+
"lint": "./bin/cli.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"package.json",
|
|
22
|
+
"README.md",
|
|
23
|
+
"CHANGELOG.md"
|
|
24
|
+
],
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/4mbl/config.git",
|
|
28
|
+
"directory": "packages/lint"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"lint"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
35
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
36
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
37
|
+
"globals": "^17.4.0",
|
|
38
|
+
"jiti": "^2.6.1",
|
|
39
|
+
"oxlint": "^1.56.0",
|
|
40
|
+
"oxlint-tsgolint": "^0.17.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^24.12.0",
|
|
44
|
+
"@4mbl/tsconfig": "0.0.0-alpha.3b86bbb"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsc"
|
|
48
|
+
}
|
|
49
|
+
}
|