@robot-inventor/oxlint-config 0.0.0 → 0.1.0

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,409 @@
1
+ const migratedRules = {
2
+ "accessor-pairs": "error",
3
+ "array-callback-return": "error",
4
+ "arrow-body-style": "error",
5
+ "block-scoped-var": "error",
6
+ "capitalized-comments": "error",
7
+ "class-methods-use-this": "error",
8
+ complexity: "error",
9
+ "constructor-super": "error",
10
+ curly: ["error", "multi-line"],
11
+ "default-case": "error",
12
+ "default-case-last": "error",
13
+ "default-param-last": "error",
14
+ eqeqeq: "error",
15
+ "for-direction": "error",
16
+ "func-name-matching": "error",
17
+ "func-names": "error",
18
+ "func-style": "error",
19
+ "getter-return": "error",
20
+ "grouped-accessor-pairs": "error",
21
+ "guard-for-in": "error",
22
+ "id-denylist": "error",
23
+ "id-length": "error",
24
+ "id-match": "error",
25
+ "init-declarations": "error",
26
+ "logical-assignment-operators": "error",
27
+ "max-classes-per-file": "error",
28
+ "max-depth": "error",
29
+ "max-lines": "error",
30
+ "max-lines-per-function": "error",
31
+ "max-nested-callbacks": "error",
32
+ "max-params": "error",
33
+ "max-statements": "error",
34
+ "new-cap": "error",
35
+ "no-alert": "error",
36
+ "no-array-constructor": "error",
37
+ "no-async-promise-executor": "error",
38
+ "no-await-in-loop": "error",
39
+ "no-bitwise": "error",
40
+ "no-caller": "error",
41
+ "no-case-declarations": "error",
42
+ "no-class-assign": "error",
43
+ "no-compare-neg-zero": "error",
44
+ "no-cond-assign": "error",
45
+ "no-console": "error",
46
+ "no-const-assign": "error",
47
+ "no-constant-binary-expression": "error",
48
+ "no-constant-condition": "error",
49
+ "no-constructor-return": "error",
50
+ "no-continue": "error",
51
+ "no-control-regex": "error",
52
+ "no-debugger": "error",
53
+ "no-delete-var": "error",
54
+ "no-div-regex": "error",
55
+ "no-dupe-class-members": "error",
56
+ "no-dupe-else-if": "error",
57
+ "no-dupe-keys": "error",
58
+ "no-duplicate-case": "error",
59
+ "no-duplicate-imports": "error",
60
+ "no-else-return": "error",
61
+ "no-empty": "error",
62
+ "no-empty-character-class": "error",
63
+ "no-empty-function": "error",
64
+ "no-empty-pattern": "error",
65
+ "no-empty-static-block": "error",
66
+ "no-eq-null": "error",
67
+ "no-eval": "error",
68
+ "no-ex-assign": "error",
69
+ "no-extend-native": "error",
70
+ "no-extra-bind": "error",
71
+ "no-extra-boolean-cast": "error",
72
+ "no-extra-label": "error",
73
+ "no-fallthrough": "error",
74
+ "no-func-assign": "error",
75
+ "no-global-assign": "error",
76
+ "no-implicit-coercion": "error",
77
+ "no-implicit-globals": "error",
78
+ "no-import-assign": "error",
79
+ "no-inline-comments": "error",
80
+ "no-inner-declarations": "error",
81
+ "no-invalid-regexp": "error",
82
+ "no-irregular-whitespace": "error",
83
+ "no-iterator": "error",
84
+ "no-label-var": "error",
85
+ "no-labels": "error",
86
+ "no-lone-blocks": "error",
87
+ "no-lonely-if": "error",
88
+ "no-loop-func": "error",
89
+ "no-loss-of-precision": "error",
90
+ "no-magic-numbers": [
91
+ "error",
92
+ {
93
+ ignoreArrayIndexes: true
94
+ }
95
+ ],
96
+ "no-misleading-character-class": "error",
97
+ "no-multi-assign": "error",
98
+ "no-multi-str": "error",
99
+ "no-negated-condition": "error",
100
+ "no-nested-ternary": "error",
101
+ "no-new-func": "error",
102
+ "no-new-native-nonconstructor": "error",
103
+ "no-new-wrappers": "error",
104
+ "no-nonoctal-decimal-escape": "error",
105
+ "no-obj-calls": "error",
106
+ "no-object-constructor": "error",
107
+ "no-param-reassign": "error",
108
+ "no-promise-executor-return": "error",
109
+ "no-proto": "error",
110
+ "no-prototype-builtins": "error",
111
+ "no-redeclare": "error",
112
+ "no-regex-spaces": "error",
113
+ "no-restricted-exports": "error",
114
+ "no-restricted-globals": "error",
115
+ "no-restricted-imports": "error",
116
+ "no-restricted-properties": "error",
117
+ "no-return-assign": "error",
118
+ "no-script-url": "error",
119
+ "no-self-assign": "error",
120
+ "no-self-compare": "error",
121
+ "no-sequences": "error",
122
+ "no-setter-return": "error",
123
+ "no-shadow": "error",
124
+ "no-shadow-restricted-names": "error",
125
+ "no-sparse-arrays": "error",
126
+ "no-template-curly-in-string": "error",
127
+ "no-this-before-super": "error",
128
+ "no-unassigned-vars": "error",
129
+ "no-undef": "error",
130
+ "no-undefined": "error",
131
+ "no-underscore-dangle": "error",
132
+ "no-unmodified-loop-condition": "error",
133
+ "no-unneeded-ternary": "error",
134
+ "no-unreachable": "error",
135
+ "no-unreachable-loop": "error",
136
+ "no-unsafe-finally": "error",
137
+ "no-unsafe-negation": "error",
138
+ "no-unsafe-optional-chaining": "error",
139
+ "no-unused-expressions": "error",
140
+ "no-unused-labels": "error",
141
+ "no-unused-private-class-members": "error",
142
+ "no-unused-vars": "error",
143
+ "no-use-before-define": "error",
144
+ "no-useless-assignment": "error",
145
+ "no-useless-backreference": "error",
146
+ "no-useless-call": "error",
147
+ "no-useless-catch": "error",
148
+ "no-useless-computed-key": "error",
149
+ "no-useless-concat": "error",
150
+ "no-useless-constructor": "error",
151
+ "no-useless-escape": "error",
152
+ "no-useless-rename": "error",
153
+ "no-useless-return": "error",
154
+ "no-var": "error",
155
+ "no-void": [
156
+ "error",
157
+ {
158
+ allowAsStatement: true
159
+ }
160
+ ],
161
+ "no-warning-comments": "error",
162
+ "no-with": "error",
163
+ "object-shorthand": "error",
164
+ "one-var": ["error", "never"],
165
+ "operator-assignment": "error",
166
+ "prefer-arrow-callback": "error",
167
+ "prefer-const": "error",
168
+ "prefer-destructuring": "error",
169
+ "prefer-exponentiation-operator": "error",
170
+ "prefer-named-capture-group": "error",
171
+ "prefer-numeric-literals": "error",
172
+ "prefer-object-has-own": "error",
173
+ "prefer-object-spread": "error",
174
+ "prefer-regex-literals": "error",
175
+ "prefer-rest-params": "error",
176
+ "prefer-spread": "error",
177
+ "prefer-template": "error",
178
+ "preserve-caught-error": "error",
179
+ radix: "error",
180
+ "require-unicode-regexp": "error",
181
+ "require-yield": "error",
182
+ "sort-keys": "error",
183
+ "sort-vars": "error",
184
+ "symbol-description": "error",
185
+ "unicode-bom": "error",
186
+ "use-isnan": "error",
187
+ "valid-typeof": "error",
188
+ "vars-on-top": "error",
189
+ yoda: "error",
190
+ "jsdoc/check-access": "error",
191
+ "jsdoc/check-property-names": "error",
192
+ "jsdoc/check-tag-names": [
193
+ "error",
194
+ {
195
+ typed: true
196
+ }
197
+ ],
198
+ "jsdoc/empty-tags": "error",
199
+ "jsdoc/implements-on-classes": "error",
200
+ "jsdoc/no-defaults": "error",
201
+ "jsdoc/require-param": "error",
202
+ "jsdoc/require-param-description": "error",
203
+ "jsdoc/require-param-name": "error",
204
+ "jsdoc/require-property": "error",
205
+ "jsdoc/require-property-description": "error",
206
+ "jsdoc/require-property-name": "error",
207
+ "jsdoc/require-returns": "error",
208
+ "jsdoc/require-returns-description": "error",
209
+ "jsdoc/require-throws-type": "error",
210
+ "jsdoc/require-yields": "error",
211
+ "jsdoc/require-yields-type": "error",
212
+ "import/namespace": "error",
213
+ "import/default": "error",
214
+ "import/export": "error",
215
+ "import/no-named-as-default": "warn",
216
+ "import/no-named-as-default-member": "warn",
217
+ "import/no-duplicates": "warn",
218
+ "import/no-absolute-path": "error",
219
+ "import/no-cycle": "error",
220
+ "import/no-self-import": "error",
221
+ "import/exports-last": "error",
222
+ "import/first": "error",
223
+ "import/group-exports": "error",
224
+ "import/max-dependencies": "error",
225
+ "import/newline-after-import": "error",
226
+ "import/no-unassigned-import": "error",
227
+ "typescript/consistent-return": "error",
228
+ "typescript/dot-notation": "error",
229
+ "typescript/await-thenable": "error",
230
+ "typescript/ban-ts-comment": [
231
+ "error",
232
+ {
233
+ minimumDescriptionLength: 10
234
+ }
235
+ ],
236
+ "typescript/no-array-delete": "error",
237
+ "typescript/no-base-to-string": "error",
238
+ "typescript/no-confusing-void-expression": "error",
239
+ "typescript/no-deprecated": "error",
240
+ "typescript/no-duplicate-enum-values": "error",
241
+ "typescript/no-duplicate-type-constituents": "error",
242
+ "typescript/no-dynamic-delete": "error",
243
+ "typescript/no-empty-object-type": "error",
244
+ "typescript/no-explicit-any": "error",
245
+ "typescript/no-extra-non-null-assertion": "error",
246
+ "typescript/no-extraneous-class": "error",
247
+ "typescript/no-floating-promises": "error",
248
+ "typescript/no-for-in-array": "error",
249
+ "typescript/no-implied-eval": "error",
250
+ "typescript/no-invalid-void-type": "error",
251
+ "typescript/no-meaningless-void-operator": "error",
252
+ "typescript/no-misused-new": "error",
253
+ "typescript/no-misused-promises": "error",
254
+ "typescript/no-misused-spread": "error",
255
+ "typescript/no-mixed-enums": "error",
256
+ "typescript/no-namespace": "error",
257
+ "typescript/no-non-null-asserted-nullish-coalescing": "error",
258
+ "typescript/no-non-null-asserted-optional-chain": "error",
259
+ "typescript/no-non-null-assertion": "error",
260
+ "typescript/no-redundant-type-constituents": "error",
261
+ "typescript/no-require-imports": "error",
262
+ "typescript/no-this-alias": "error",
263
+ "typescript/no-unnecessary-boolean-literal-compare": "error",
264
+ "typescript/no-unnecessary-condition": "error",
265
+ "typescript/no-unnecessary-template-expression": "error",
266
+ "typescript/no-unnecessary-type-arguments": "error",
267
+ "typescript/no-unnecessary-type-assertion": "error",
268
+ "typescript/no-unnecessary-type-constraint": "error",
269
+ "typescript/no-unnecessary-type-conversion": "error",
270
+ "typescript/no-unnecessary-type-parameters": "error",
271
+ "typescript/no-unsafe-argument": "error",
272
+ "typescript/no-unsafe-assignment": "error",
273
+ "typescript/no-unsafe-call": "error",
274
+ "typescript/no-unsafe-declaration-merging": "error",
275
+ "typescript/no-unsafe-enum-comparison": "error",
276
+ "typescript/no-unsafe-function-type": "error",
277
+ "typescript/no-unsafe-member-access": "error",
278
+ "typescript/no-unsafe-return": "error",
279
+ "typescript/no-unsafe-unary-minus": "error",
280
+ "typescript/no-useless-default-assignment": "error",
281
+ "typescript/no-wrapper-object-types": "error",
282
+ "typescript/only-throw-error": "error",
283
+ "typescript/prefer-as-const": "error",
284
+ "typescript/prefer-literal-enum-member": "error",
285
+ "typescript/prefer-namespace-keyword": "error",
286
+ "typescript/prefer-promise-reject-errors": "error",
287
+ "typescript/prefer-reduce-type-parameter": "error",
288
+ "typescript/prefer-return-this-type": "error",
289
+ "typescript/related-getter-setter-pairs": "error",
290
+ "typescript/require-await": "error",
291
+ "typescript/restrict-plus-operands": [
292
+ "error",
293
+ {
294
+ allowAny: false,
295
+ allowBoolean: false,
296
+ allowNullish: false,
297
+ allowNumberAndString: false,
298
+ allowRegExp: false
299
+ }
300
+ ],
301
+ "typescript/restrict-template-expressions": [
302
+ "error",
303
+ {
304
+ allowAny: false,
305
+ allowBoolean: false,
306
+ allowNever: false,
307
+ allowNullish: false,
308
+ allowNumber: false,
309
+ allowRegExp: false
310
+ }
311
+ ],
312
+ "typescript/return-await": ["error", "error-handling-correctness-only"],
313
+ "typescript/triple-slash-reference": "error",
314
+ "typescript/unbound-method": "error",
315
+ "typescript/unified-signatures": "error",
316
+ "typescript/use-unknown-in-catch-callback-variable": "error",
317
+ "typescript/adjacent-overload-signatures": "error",
318
+ "typescript/array-type": [
319
+ "error",
320
+ {
321
+ default: "array-simple"
322
+ }
323
+ ],
324
+ "typescript/ban-tslint-comment": "error",
325
+ "typescript/class-literal-property-style": "error",
326
+ "typescript/consistent-generic-constructors": "error",
327
+ "typescript/consistent-indexed-object-style": "error",
328
+ "typescript/consistent-type-assertions": "error",
329
+ "typescript/consistent-type-definitions": "error",
330
+ "typescript/no-confusing-non-null-assertion": "error",
331
+ "typescript/no-inferrable-types": "error",
332
+ "typescript/non-nullable-type-assertion-style": "error",
333
+ "typescript/prefer-find": "error",
334
+ "typescript/prefer-for-of": "error",
335
+ "typescript/prefer-function-type": "error",
336
+ "typescript/prefer-includes": "error",
337
+ "typescript/prefer-nullish-coalescing": "error",
338
+ "typescript/prefer-optional-chain": "error",
339
+ "typescript/prefer-regexp-exec": "error",
340
+ "typescript/prefer-string-starts-ends-with": "error",
341
+ "typescript/explicit-function-return-type": "error",
342
+ "typescript/explicit-member-accessibility": "error",
343
+ "typescript/consistent-type-imports": "error",
344
+ "typescript/no-import-type-side-effects": "error",
345
+ "typescript/consistent-type-exports": "error",
346
+ "typescript/switch-exhaustiveness-check": "error"
347
+ };
348
+ const disabledRules = {
349
+ "import/named": "off",
350
+ "jsdoc/no-blank-blocks": "off",
351
+ "jsdoc/require-param-type": "off",
352
+ "jsdoc/require-property-type": "off",
353
+ "jsdoc/require-returns-type": "off",
354
+ "jsdoc/require-throws-description": "off",
355
+ "jsdoc/require-yields-description": "off",
356
+ "no-implied-eval": "off",
357
+ "no-new": "off",
358
+ "no-plusplus": "off",
359
+ "no-ternary": "off",
360
+ "no-throw-literal": "off",
361
+ "no-unexpected-multiline": "off",
362
+ "prefer-promise-reject-errors": "off",
363
+ "require-await": "off",
364
+ "unicorn/empty-brace-spaces": "off",
365
+ "unicorn/no-nested-ternary": "off",
366
+ "unicorn/number-literal-case": "off"
367
+ };
368
+ const baseRules = {
369
+ ...disabledRules,
370
+ ...migratedRules,
371
+ "oxc/no-this-in-exported-function": "error",
372
+ "sort-imports": [
373
+ "error",
374
+ {
375
+ allowSeparatedGroups: false,
376
+ ignoreCase: false,
377
+ ignoreDeclarationSort: false,
378
+ ignoreMemberSort: false,
379
+ memberSyntaxSortOrder: ["none", "all", "multiple", "single"]
380
+ }
381
+ ],
382
+ "typescript/no-this-alias": [
383
+ "error",
384
+ {
385
+ allowedNames: ["that"]
386
+ }
387
+ ],
388
+ "unicorn/no-useless-undefined": "error"
389
+ };
390
+ const typescriptOverrides = {
391
+ "constructor-super": "off",
392
+ "getter-return": "off",
393
+ "no-class-assign": "off",
394
+ "no-const-assign": "off",
395
+ "no-dupe-class-members": "off",
396
+ "no-dupe-keys": "off",
397
+ "no-func-assign": "off",
398
+ "no-import-assign": "off",
399
+ "no-new-native-nonconstructor": "off",
400
+ "no-obj-calls": "off",
401
+ "no-redeclare": "off",
402
+ "no-setter-return": "off",
403
+ "no-this-before-super": "off",
404
+ "no-undef": "off",
405
+ "no-unreachable": "off",
406
+ "no-unsafe-negation": "off",
407
+ "no-with": "off"
408
+ };
409
+ export { baseRules, typescriptOverrides };
@@ -0,0 +1,9 @@
1
+ declare const corePlugin: {
2
+ readonly meta: {
3
+ readonly name: "eslint-core-compat";
4
+ };
5
+ readonly rules: {
6
+ [k: string]: import("eslint").Rule.RuleModule;
7
+ };
8
+ };
9
+ export default corePlugin;
@@ -0,0 +1,8 @@
1
+ import { builtinRules } from "eslint/use-at-your-own-risk";
2
+ const corePlugin = {
3
+ meta: {
4
+ name: "eslint-core-compat"
5
+ },
6
+ rules: Object.fromEntries(builtinRules)
7
+ };
8
+ export default corePlugin;