@4mbl/lint 0.0.0-alpha.007a287
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 +202 -0
- package/README.md +132 -0
- package/bin/cli.js +72 -0
- package/dist/base.d.ts +321 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/base.js +176 -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 +59 -0
- package/dist/next.js.map +1 -0
- package/dist/node.d.ts +331 -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 +451 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +76 -0
- package/dist/react.js.map +1 -0
- package/package.json +49 -0
package/dist/node.d.ts
ADDED
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { defineConfig, type OxlintConfig } from 'oxlint';
|
|
2
|
+
type NodeOptions = {};
|
|
3
|
+
declare function nodeConfig(_options?: Partial<NodeOptions>): {
|
|
4
|
+
extends: {
|
|
5
|
+
plugins: ("unicorn" | "typescript")[];
|
|
6
|
+
jsPlugins: never[];
|
|
7
|
+
categories: {
|
|
8
|
+
correctness: "error";
|
|
9
|
+
suspicious: "warn";
|
|
10
|
+
pedantic: "off";
|
|
11
|
+
perf: "warn";
|
|
12
|
+
style: "warn";
|
|
13
|
+
restriction: "warn";
|
|
14
|
+
nursery: "off";
|
|
15
|
+
};
|
|
16
|
+
env: {
|
|
17
|
+
builtin: true;
|
|
18
|
+
};
|
|
19
|
+
options: {
|
|
20
|
+
typeAware: true;
|
|
21
|
+
};
|
|
22
|
+
rules: {
|
|
23
|
+
'eslint/no-var': "warn";
|
|
24
|
+
'eslint/prefer-const': "error";
|
|
25
|
+
'eslint/prefer-rest-params': "error";
|
|
26
|
+
'eslint/prefer-spread': "error";
|
|
27
|
+
'eslint/no-async-promise-executor': "error";
|
|
28
|
+
'eslint/no-case-declarations': "error";
|
|
29
|
+
'eslint/no-class-assign': "error";
|
|
30
|
+
'eslint/no-compare-neg-zero': "error";
|
|
31
|
+
'eslint/no-cond-assign': "error";
|
|
32
|
+
'eslint/no-const-assign': "error";
|
|
33
|
+
'eslint/no-constant-binary-expression': "error";
|
|
34
|
+
'eslint/no-constant-condition': "error";
|
|
35
|
+
'eslint/no-control-regex': "error";
|
|
36
|
+
'eslint/no-debugger': "error";
|
|
37
|
+
'eslint/no-delete-var': "error";
|
|
38
|
+
'eslint/no-dupe-else-if': "error";
|
|
39
|
+
'eslint/no-duplicate-case': "error";
|
|
40
|
+
'eslint/no-empty': "error";
|
|
41
|
+
'eslint/no-empty-character-class': "error";
|
|
42
|
+
'eslint/no-empty-pattern': "error";
|
|
43
|
+
'eslint/no-empty-static-block': "error";
|
|
44
|
+
'eslint/no-ex-assign': "error";
|
|
45
|
+
'eslint/no-extra-boolean-cast': "error";
|
|
46
|
+
'eslint/no-fallthrough': ["error", {
|
|
47
|
+
allowEmptyCase: boolean;
|
|
48
|
+
}];
|
|
49
|
+
'eslint/no-func-assign': "error";
|
|
50
|
+
'eslint/no-global-assign': "error";
|
|
51
|
+
'eslint/no-import-assign': "error";
|
|
52
|
+
'eslint/no-invalid-regexp': "error";
|
|
53
|
+
'eslint/no-irregular-whitespace': "error";
|
|
54
|
+
'eslint/no-loss-of-precision': "error";
|
|
55
|
+
'eslint/no-misleading-character-class': "error";
|
|
56
|
+
'eslint/no-nonoctal-decimal-escape': "error";
|
|
57
|
+
'eslint/no-obj-calls': "error";
|
|
58
|
+
'eslint/no-prototype-builtins': "error";
|
|
59
|
+
'eslint/no-redeclare': "error";
|
|
60
|
+
'eslint/no-regex-spaces': "error";
|
|
61
|
+
'eslint/no-self-assign': "error";
|
|
62
|
+
'eslint/no-shadow-restricted-names': "error";
|
|
63
|
+
'eslint/no-sparse-arrays': "error";
|
|
64
|
+
'eslint/no-unexpected-multiline': "error";
|
|
65
|
+
'eslint/no-unsafe-finally': "error";
|
|
66
|
+
'eslint/no-unsafe-negation': "error";
|
|
67
|
+
'eslint/no-unsafe-optional-chaining': "error";
|
|
68
|
+
'eslint/no-unused-labels': "error";
|
|
69
|
+
'eslint/no-unused-private-class-members': "error";
|
|
70
|
+
'eslint/no-unused-vars': "warn";
|
|
71
|
+
'eslint/no-useless-backreference': "error";
|
|
72
|
+
'eslint/no-useless-catch': "error";
|
|
73
|
+
'eslint/no-useless-escape': "error";
|
|
74
|
+
'eslint/require-yield': "error";
|
|
75
|
+
'eslint/use-isnan': "error";
|
|
76
|
+
'eslint/valid-typeof': "error";
|
|
77
|
+
'eslint/no-unused-expressions': "warn";
|
|
78
|
+
'typescript/ban-ts-comment': "error";
|
|
79
|
+
'typescript/no-duplicate-enum-values': "off";
|
|
80
|
+
'typescript/no-empty-object-type': "error";
|
|
81
|
+
'typescript/no-explicit-any': "error";
|
|
82
|
+
'typescript/no-extra-non-null-assertion': "error";
|
|
83
|
+
'typescript/no-misused-new': "error";
|
|
84
|
+
'typescript/no-namespace': "error";
|
|
85
|
+
'typescript/no-non-null-asserted-optional-chain': "error";
|
|
86
|
+
'typescript/no-require-imports': "error";
|
|
87
|
+
'typescript/no-this-alias': "error";
|
|
88
|
+
'typescript/no-unnecessary-type-constraint': "error";
|
|
89
|
+
'typescript/no-unsafe-declaration-merging': "error";
|
|
90
|
+
'typescript/no-unsafe-function-type': "error";
|
|
91
|
+
'typescript/no-wrapper-object-types': "error";
|
|
92
|
+
'typescript/prefer-as-const': "error";
|
|
93
|
+
'typescript/triple-slash-reference': "error";
|
|
94
|
+
'typescript/explicit-member-accessibility': ["warn", {
|
|
95
|
+
accessibility: string;
|
|
96
|
+
}];
|
|
97
|
+
'eslint/id-length': "off";
|
|
98
|
+
'eslint/sort-keys': "off";
|
|
99
|
+
'eslint/capitalized-comments': "off";
|
|
100
|
+
'eslint/func-style': "off";
|
|
101
|
+
'eslint/complexity': "off";
|
|
102
|
+
'eslint/max-params': "off";
|
|
103
|
+
'eslint/no-ternary': "off";
|
|
104
|
+
'eslint/curly': "warn";
|
|
105
|
+
'typescript/consistent-type-definitions': ["warn", string];
|
|
106
|
+
'eslint/max-statements': "off";
|
|
107
|
+
'typescript/consistent-return': "off";
|
|
108
|
+
'unicorn/switch-case-braces': "warn";
|
|
109
|
+
'typescript/prefer-regexp-exec': "warn";
|
|
110
|
+
'eslint/init-declarations': "off";
|
|
111
|
+
'unicorn/no-null': "off";
|
|
112
|
+
'eslint/no-undefined': "off";
|
|
113
|
+
'eslint/no-console': "off";
|
|
114
|
+
'eslint/no-continue': "off";
|
|
115
|
+
'eslint/no-implicit-coercion': ["warn", {
|
|
116
|
+
allow: string[];
|
|
117
|
+
}];
|
|
118
|
+
'eslint/no-plusplus': "off";
|
|
119
|
+
'eslint/no-void': "off";
|
|
120
|
+
'eslint/no-nested-ternary': "off";
|
|
121
|
+
'eslint/no-empty-function': ["warn", {
|
|
122
|
+
allow: string[];
|
|
123
|
+
}];
|
|
124
|
+
'unicorn/no-instanceof-builtins': "off";
|
|
125
|
+
'unicorn/prefer-spread': "off";
|
|
126
|
+
'eslint/new-cap': "off";
|
|
127
|
+
'unicorn/no-await-expression-member': "off";
|
|
128
|
+
'eslint/no-duplicate-imports': ["warn", {
|
|
129
|
+
allowSeparateTypeImports: boolean;
|
|
130
|
+
}];
|
|
131
|
+
'import/no-named-export': "off";
|
|
132
|
+
'import/no-default-export': "off";
|
|
133
|
+
'import/prefer-default-export': "off";
|
|
134
|
+
'import/no-namespace': "off";
|
|
135
|
+
'import/exports-last': "off";
|
|
136
|
+
'import/no-unassigned-import': "off";
|
|
137
|
+
'unicorn/no-new-array': "off";
|
|
138
|
+
'eslint/no-array-constructor': "warn";
|
|
139
|
+
'typescript/explicit-function-return-type': "off";
|
|
140
|
+
'typescript/explicit-module-boundary-types': "off";
|
|
141
|
+
'unicorn/no-anonymous-default-export': "off";
|
|
142
|
+
'eslint/sort-imports': "off";
|
|
143
|
+
'eslint/no-magic-numbers': "off";
|
|
144
|
+
'unicorn/prefer-modern-math-apis': "off";
|
|
145
|
+
'eslint/no-use-before-define': "off";
|
|
146
|
+
'eslint/constructor-super': "off";
|
|
147
|
+
'eslint/getter-return': "off";
|
|
148
|
+
'eslint/no-dupe-class-members': "off";
|
|
149
|
+
'eslint/no-dupe-keys': "off";
|
|
150
|
+
'eslint/no-new-native-nonconstructor': "off";
|
|
151
|
+
'eslint/no-setter-return': "off";
|
|
152
|
+
'eslint/no-this-before-super': "off";
|
|
153
|
+
'eslint/no-undef': "off";
|
|
154
|
+
'eslint/no-unreachable': "off";
|
|
155
|
+
'eslint/no-with': "off";
|
|
156
|
+
'unicorn/no-nested-ternary': "off";
|
|
157
|
+
'oxc/no-optional-chaining': "off";
|
|
158
|
+
'oxc/no-rest-spread-properties': "off";
|
|
159
|
+
'oxc/no-async-await': "off";
|
|
160
|
+
};
|
|
161
|
+
}[];
|
|
162
|
+
env: {
|
|
163
|
+
node: true;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
export { type OxlintConfig, defineConfig, nodeConfig };
|
|
167
|
+
declare const _default: {
|
|
168
|
+
extends: {
|
|
169
|
+
plugins: ("unicorn" | "typescript")[];
|
|
170
|
+
jsPlugins: never[];
|
|
171
|
+
categories: {
|
|
172
|
+
correctness: "error";
|
|
173
|
+
suspicious: "warn";
|
|
174
|
+
pedantic: "off";
|
|
175
|
+
perf: "warn";
|
|
176
|
+
style: "warn";
|
|
177
|
+
restriction: "warn";
|
|
178
|
+
nursery: "off";
|
|
179
|
+
};
|
|
180
|
+
env: {
|
|
181
|
+
builtin: true;
|
|
182
|
+
};
|
|
183
|
+
options: {
|
|
184
|
+
typeAware: true;
|
|
185
|
+
};
|
|
186
|
+
rules: {
|
|
187
|
+
'eslint/no-var': "warn";
|
|
188
|
+
'eslint/prefer-const': "error";
|
|
189
|
+
'eslint/prefer-rest-params': "error";
|
|
190
|
+
'eslint/prefer-spread': "error";
|
|
191
|
+
'eslint/no-async-promise-executor': "error";
|
|
192
|
+
'eslint/no-case-declarations': "error";
|
|
193
|
+
'eslint/no-class-assign': "error";
|
|
194
|
+
'eslint/no-compare-neg-zero': "error";
|
|
195
|
+
'eslint/no-cond-assign': "error";
|
|
196
|
+
'eslint/no-const-assign': "error";
|
|
197
|
+
'eslint/no-constant-binary-expression': "error";
|
|
198
|
+
'eslint/no-constant-condition': "error";
|
|
199
|
+
'eslint/no-control-regex': "error";
|
|
200
|
+
'eslint/no-debugger': "error";
|
|
201
|
+
'eslint/no-delete-var': "error";
|
|
202
|
+
'eslint/no-dupe-else-if': "error";
|
|
203
|
+
'eslint/no-duplicate-case': "error";
|
|
204
|
+
'eslint/no-empty': "error";
|
|
205
|
+
'eslint/no-empty-character-class': "error";
|
|
206
|
+
'eslint/no-empty-pattern': "error";
|
|
207
|
+
'eslint/no-empty-static-block': "error";
|
|
208
|
+
'eslint/no-ex-assign': "error";
|
|
209
|
+
'eslint/no-extra-boolean-cast': "error";
|
|
210
|
+
'eslint/no-fallthrough': ["error", {
|
|
211
|
+
allowEmptyCase: boolean;
|
|
212
|
+
}];
|
|
213
|
+
'eslint/no-func-assign': "error";
|
|
214
|
+
'eslint/no-global-assign': "error";
|
|
215
|
+
'eslint/no-import-assign': "error";
|
|
216
|
+
'eslint/no-invalid-regexp': "error";
|
|
217
|
+
'eslint/no-irregular-whitespace': "error";
|
|
218
|
+
'eslint/no-loss-of-precision': "error";
|
|
219
|
+
'eslint/no-misleading-character-class': "error";
|
|
220
|
+
'eslint/no-nonoctal-decimal-escape': "error";
|
|
221
|
+
'eslint/no-obj-calls': "error";
|
|
222
|
+
'eslint/no-prototype-builtins': "error";
|
|
223
|
+
'eslint/no-redeclare': "error";
|
|
224
|
+
'eslint/no-regex-spaces': "error";
|
|
225
|
+
'eslint/no-self-assign': "error";
|
|
226
|
+
'eslint/no-shadow-restricted-names': "error";
|
|
227
|
+
'eslint/no-sparse-arrays': "error";
|
|
228
|
+
'eslint/no-unexpected-multiline': "error";
|
|
229
|
+
'eslint/no-unsafe-finally': "error";
|
|
230
|
+
'eslint/no-unsafe-negation': "error";
|
|
231
|
+
'eslint/no-unsafe-optional-chaining': "error";
|
|
232
|
+
'eslint/no-unused-labels': "error";
|
|
233
|
+
'eslint/no-unused-private-class-members': "error";
|
|
234
|
+
'eslint/no-unused-vars': "warn";
|
|
235
|
+
'eslint/no-useless-backreference': "error";
|
|
236
|
+
'eslint/no-useless-catch': "error";
|
|
237
|
+
'eslint/no-useless-escape': "error";
|
|
238
|
+
'eslint/require-yield': "error";
|
|
239
|
+
'eslint/use-isnan': "error";
|
|
240
|
+
'eslint/valid-typeof': "error";
|
|
241
|
+
'eslint/no-unused-expressions': "warn";
|
|
242
|
+
'typescript/ban-ts-comment': "error";
|
|
243
|
+
'typescript/no-duplicate-enum-values': "off";
|
|
244
|
+
'typescript/no-empty-object-type': "error";
|
|
245
|
+
'typescript/no-explicit-any': "error";
|
|
246
|
+
'typescript/no-extra-non-null-assertion': "error";
|
|
247
|
+
'typescript/no-misused-new': "error";
|
|
248
|
+
'typescript/no-namespace': "error";
|
|
249
|
+
'typescript/no-non-null-asserted-optional-chain': "error";
|
|
250
|
+
'typescript/no-require-imports': "error";
|
|
251
|
+
'typescript/no-this-alias': "error";
|
|
252
|
+
'typescript/no-unnecessary-type-constraint': "error";
|
|
253
|
+
'typescript/no-unsafe-declaration-merging': "error";
|
|
254
|
+
'typescript/no-unsafe-function-type': "error";
|
|
255
|
+
'typescript/no-wrapper-object-types': "error";
|
|
256
|
+
'typescript/prefer-as-const': "error";
|
|
257
|
+
'typescript/triple-slash-reference': "error";
|
|
258
|
+
'typescript/explicit-member-accessibility': ["warn", {
|
|
259
|
+
accessibility: string;
|
|
260
|
+
}];
|
|
261
|
+
'eslint/id-length': "off";
|
|
262
|
+
'eslint/sort-keys': "off";
|
|
263
|
+
'eslint/capitalized-comments': "off";
|
|
264
|
+
'eslint/func-style': "off";
|
|
265
|
+
'eslint/complexity': "off";
|
|
266
|
+
'eslint/max-params': "off";
|
|
267
|
+
'eslint/no-ternary': "off";
|
|
268
|
+
'eslint/curly': "warn";
|
|
269
|
+
'typescript/consistent-type-definitions': ["warn", string];
|
|
270
|
+
'eslint/max-statements': "off";
|
|
271
|
+
'typescript/consistent-return': "off";
|
|
272
|
+
'unicorn/switch-case-braces': "warn";
|
|
273
|
+
'typescript/prefer-regexp-exec': "warn";
|
|
274
|
+
'eslint/init-declarations': "off";
|
|
275
|
+
'unicorn/no-null': "off";
|
|
276
|
+
'eslint/no-undefined': "off";
|
|
277
|
+
'eslint/no-console': "off";
|
|
278
|
+
'eslint/no-continue': "off";
|
|
279
|
+
'eslint/no-implicit-coercion': ["warn", {
|
|
280
|
+
allow: string[];
|
|
281
|
+
}];
|
|
282
|
+
'eslint/no-plusplus': "off";
|
|
283
|
+
'eslint/no-void': "off";
|
|
284
|
+
'eslint/no-nested-ternary': "off";
|
|
285
|
+
'eslint/no-empty-function': ["warn", {
|
|
286
|
+
allow: string[];
|
|
287
|
+
}];
|
|
288
|
+
'unicorn/no-instanceof-builtins': "off";
|
|
289
|
+
'unicorn/prefer-spread': "off";
|
|
290
|
+
'eslint/new-cap': "off";
|
|
291
|
+
'unicorn/no-await-expression-member': "off";
|
|
292
|
+
'eslint/no-duplicate-imports': ["warn", {
|
|
293
|
+
allowSeparateTypeImports: boolean;
|
|
294
|
+
}];
|
|
295
|
+
'import/no-named-export': "off";
|
|
296
|
+
'import/no-default-export': "off";
|
|
297
|
+
'import/prefer-default-export': "off";
|
|
298
|
+
'import/no-namespace': "off";
|
|
299
|
+
'import/exports-last': "off";
|
|
300
|
+
'import/no-unassigned-import': "off";
|
|
301
|
+
'unicorn/no-new-array': "off";
|
|
302
|
+
'eslint/no-array-constructor': "warn";
|
|
303
|
+
'typescript/explicit-function-return-type': "off";
|
|
304
|
+
'typescript/explicit-module-boundary-types': "off";
|
|
305
|
+
'unicorn/no-anonymous-default-export': "off";
|
|
306
|
+
'eslint/sort-imports': "off";
|
|
307
|
+
'eslint/no-magic-numbers': "off";
|
|
308
|
+
'unicorn/prefer-modern-math-apis': "off";
|
|
309
|
+
'eslint/no-use-before-define': "off";
|
|
310
|
+
'eslint/constructor-super': "off";
|
|
311
|
+
'eslint/getter-return': "off";
|
|
312
|
+
'eslint/no-dupe-class-members': "off";
|
|
313
|
+
'eslint/no-dupe-keys': "off";
|
|
314
|
+
'eslint/no-new-native-nonconstructor': "off";
|
|
315
|
+
'eslint/no-setter-return': "off";
|
|
316
|
+
'eslint/no-this-before-super': "off";
|
|
317
|
+
'eslint/no-undef': "off";
|
|
318
|
+
'eslint/no-unreachable': "off";
|
|
319
|
+
'eslint/no-with': "off";
|
|
320
|
+
'unicorn/no-nested-ternary': "off";
|
|
321
|
+
'oxc/no-optional-chaining': "off";
|
|
322
|
+
'oxc/no-rest-spread-properties': "off";
|
|
323
|
+
'oxc/no-async-await': "off";
|
|
324
|
+
};
|
|
325
|
+
}[];
|
|
326
|
+
env: {
|
|
327
|
+
node: true;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
export default _default;
|
|
331
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +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;AAGzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASlD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,wBAA4B"}
|
package/dist/node.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineConfig } from 'oxlint';
|
|
2
|
+
import { baseConfig } from './base.js';
|
|
3
|
+
// const DEFAULT_OPTIONS: NodeOptions = {};
|
|
4
|
+
function nodeConfig(_options) {
|
|
5
|
+
// const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
6
|
+
return defineConfig({
|
|
7
|
+
extends: [baseConfig()],
|
|
8
|
+
env: {
|
|
9
|
+
node: true,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export { defineConfig, nodeConfig };
|
|
14
|
+
export default nodeConfig();
|
|
15
|
+
//# sourceMappingURL=node.js.map
|
package/dist/node.js.map
ADDED
|
@@ -0,0 +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;AAIvC,2CAA2C;AAE3C,SAAS,UAAU,CAAC,QAA+B;IACjD,mDAAmD;IAEnD,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,UAAU,EAAE,CAAC;QACvB,GAAG,EAAE;YACH,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,eAAe,UAAU,EAAE,CAAC"}
|