oxlint-config-presets 0.1.6 → 0.1.8
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/@typescript-eslint/all.json +1 -0
- package/@vitest/all.json +1 -0
- package/@vitest/recommended.json +1 -0
- package/README.md +48 -41
- package/alloy/typescript.json +1 -0
- package/jest/all.json +3 -0
- package/jest/recommended.json +1 -0
- package/oxlint-config.d.ts +3 -0
- package/package.json +16 -2
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"typescript/consistent-type-imports": "error",
|
|
41
41
|
"typescript/dot-notation": "error",
|
|
42
42
|
"typescript/explicit-function-return-type": "error",
|
|
43
|
+
"typescript/explicit-member-accessibility": "error",
|
|
43
44
|
"typescript/explicit-module-boundary-types": "error",
|
|
44
45
|
"typescript/no-array-delete": "error",
|
|
45
46
|
"typescript/no-base-to-string": "error",
|
package/@vitest/all.json
CHANGED
package/@vitest/recommended.json
CHANGED
package/README.md
CHANGED
|
@@ -45,6 +45,23 @@ You can also compose multiple presets. Later entries override earlier ones:
|
|
|
45
45
|
> Oxlint currently expects `extends` values to be **JSON file paths** relative to your config file.
|
|
46
46
|
> For presets in this package, use `./node_modules/oxlint-config-presets/<config>.json`.
|
|
47
47
|
|
|
48
|
+
### Usage with `oxlint.config.ts`
|
|
49
|
+
|
|
50
|
+
If you use a [TypeScript config file](https://oxc.rs/docs/guide/usage/linter/config) (`oxlint.config.ts`), you can import presets directly. TypeScript type definitions are included for all presets:
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
import airbnb from 'oxlint-config-presets/airbnb.json' with { type: 'json' };
|
|
54
|
+
import tsStrict from 'oxlint-config-presets/@typescript-eslint/strict-type-checked.json' with { type: 'json' };
|
|
55
|
+
import { defineConfig } from 'oxlint';
|
|
56
|
+
|
|
57
|
+
export default defineConfig({
|
|
58
|
+
extends: [airbnb, tsStrict],
|
|
59
|
+
});
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
> [!NOTE]
|
|
63
|
+
> Requires Node.js v22.18+ or v24+ for `with { type: "json" }` (import attributes) support.
|
|
64
|
+
|
|
48
65
|
<!-- GENERATED CONFIGS START -->
|
|
49
66
|
|
|
50
67
|
## Available configs
|
|
@@ -143,7 +160,7 @@ You can also compose multiple presets. Later entries override earlier ones:
|
|
|
143
160
|
- vue2-strongly-recommended `vue/vue2-strongly-recommended.json`
|
|
144
161
|
- vue2-strongly-recommended-error `vue/vue2-strongly-recommended-error.json`
|
|
145
162
|
|
|
146
|
-
Generated with `@oxlint/migrate@1.
|
|
163
|
+
Generated with `@oxlint/migrate@1.61.0`.
|
|
147
164
|
|
|
148
165
|
### `airbnb.json`
|
|
149
166
|
|
|
@@ -189,6 +206,7 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
189
206
|
> react.version "detect" is not supported. Specify an explicit version (e.g., "18.2.0") in your oxlint config.
|
|
190
207
|
> `react.pragma`
|
|
191
208
|
> `propWrapperFunctions`
|
|
209
|
+
> Added 65 globals to the root config. This may happen when your ESLint config uses a different version of the `globals` package than @oxlint/migrate. Try updating `globals` and rerun the migration to get a simpler config.
|
|
192
210
|
|
|
193
211
|
### `airbnb/base.json`
|
|
194
212
|
|
|
@@ -231,6 +249,7 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
231
249
|
> `import/extensions`
|
|
232
250
|
> `import/core-modules`
|
|
233
251
|
> `import/ignore`
|
|
252
|
+
> Added 65 globals to the root config. This may happen when your ESLint config uses a different version of the `globals` package than @oxlint/migrate. Try updating `globals` and rerun the migration to get a simpler config.
|
|
234
253
|
|
|
235
254
|
### `airbnb/hooks.json`
|
|
236
255
|
|
|
@@ -275,6 +294,8 @@ Extracted from `eslint-config-airbnb@19.0.4`.
|
|
|
275
294
|
|
|
276
295
|
</details>
|
|
277
296
|
|
|
297
|
+
> Added 768 globals to the root config. This may happen when your ESLint config uses a different version of the `globals` package than @oxlint/migrate. Try updating `globals` and rerun the migration to get a simpler config.
|
|
298
|
+
|
|
278
299
|
### `airbnb/whitespace.json`
|
|
279
300
|
|
|
280
301
|
```json
|
|
@@ -319,6 +340,7 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
319
340
|
> react.version "detect" is not supported. Specify an explicit version (e.g., "18.2.0") in your oxlint config.
|
|
320
341
|
> `react.pragma`
|
|
321
342
|
> `propWrapperFunctions`
|
|
343
|
+
> Added 65 globals to the root config. This may happen when your ESLint config uses a different version of the `globals` package than @oxlint/migrate. Try updating `globals` and rerun the migration to get a simpler config.
|
|
322
344
|
|
|
323
345
|
### `standard.json`
|
|
324
346
|
|
|
@@ -348,6 +370,8 @@ Extracted from `eslint-config-standard@17.1.0`.
|
|
|
348
370
|
|
|
349
371
|
</details>
|
|
350
372
|
|
|
373
|
+
> Added 68 globals to the root config. This may happen when your ESLint config uses a different version of the `globals` package than @oxlint/migrate. Try updating `globals` and rerun the migration to get a simpler config.
|
|
374
|
+
|
|
351
375
|
### `google.json`
|
|
352
376
|
|
|
353
377
|
```json
|
|
@@ -475,18 +499,18 @@ Extracted from `@typescript-eslint/eslint-plugin@8.57.2`.
|
|
|
475
499
|
Extracted from `@typescript-eslint/eslint-plugin@8.57.2`.
|
|
476
500
|
|
|
477
501
|
<details>
|
|
478
|
-
<summary>
|
|
502
|
+
<summary>126 rules successfully migrated</summary>
|
|
479
503
|
|
|
480
|
-
`class-methods-use-this`, `default-param-last`, `init-declarations`, `max-params`, `no-array-constructor`, `no-dupe-class-members`, `no-empty-function`, `no-loop-func`, `no-magic-numbers`, `no-redeclare`, `no-restricted-imports`, `no-shadow`, `no-unused-expressions`, `no-unused-private-class-members`, `no-unused-vars`, `no-use-before-define`, `no-useless-constructor`, `no-throw-literal`, `prefer-destructuring`, `prefer-promise-reject-errors`, `require-await`, `typescript/adjacent-overload-signatures`, `typescript/array-type`, `typescript/await-thenable`, `typescript/ban-ts-comment`, `typescript/ban-tslint-comment`, `typescript/class-literal-property-style`, `typescript/consistent-generic-constructors`, `typescript/consistent-indexed-object-style`, `typescript/consistent-return`, `typescript/consistent-type-assertions`, `typescript/consistent-type-definitions`, `typescript/consistent-type-exports`, `typescript/consistent-type-imports`, `typescript/dot-notation`, `typescript/explicit-function-return-type`, `typescript/explicit-module-boundary-types`, `typescript/no-array-delete`, `typescript/no-base-to-string`, `typescript/no-confusing-non-null-assertion`, `typescript/no-confusing-void-expression`, `typescript/no-deprecated`, `typescript/no-duplicate-enum-values`, `typescript/no-duplicate-type-constituents`, `typescript/no-dynamic-delete`, `typescript/no-empty-object-type`, `typescript/no-explicit-any`, `typescript/no-extra-non-null-assertion`, `typescript/no-extraneous-class`, `typescript/no-floating-promises`, `typescript/no-for-in-array`, `typescript/no-implied-eval`, `typescript/no-import-type-side-effects`, `typescript/no-inferrable-types`, `typescript/no-invalid-void-type`, `typescript/no-meaningless-void-operator`, `typescript/no-misused-new`, `typescript/no-misused-promises`, `typescript/no-misused-spread`, `typescript/no-mixed-enums`, `typescript/no-namespace`, `typescript/no-non-null-asserted-nullish-coalescing`, `typescript/no-non-null-asserted-optional-chain`, `typescript/no-non-null-assertion`, `typescript/no-redundant-type-constituents`, `typescript/no-require-imports`, `typescript/no-restricted-types`, `typescript/no-this-alias`, `typescript/no-unnecessary-boolean-literal-compare`, `typescript/no-unnecessary-condition`, `typescript/no-unnecessary-parameter-property-assignment`, `typescript/no-unnecessary-qualifier`, `typescript/no-unnecessary-template-expression`, `typescript/no-unnecessary-type-arguments`, `typescript/no-unnecessary-type-assertion`, `typescript/no-unnecessary-type-constraint`, `typescript/no-unnecessary-type-conversion`, `typescript/no-unnecessary-type-parameters`, `typescript/no-unsafe-argument`, `typescript/no-unsafe-assignment`, `typescript/no-unsafe-call`, `typescript/no-unsafe-declaration-merging`, `typescript/no-unsafe-enum-comparison`, `typescript/no-unsafe-function-type`, `typescript/no-unsafe-member-access`, `typescript/no-unsafe-return`, `typescript/no-unsafe-type-assertion`, `typescript/no-unsafe-unary-minus`, `typescript/no-useless-default-assignment`, `typescript/no-useless-empty-export`, `typescript/no-wrapper-object-types`, `typescript/non-nullable-type-assertion-style`, `typescript/only-throw-error`, `typescript/parameter-properties`, `typescript/prefer-as-const`, `typescript/prefer-enum-initializers`, `typescript/prefer-find`, `typescript/prefer-for-of`, `typescript/prefer-function-type`, `typescript/prefer-includes`, `typescript/prefer-literal-enum-member`, `typescript/prefer-namespace-keyword`, `typescript/prefer-nullish-coalescing`, `typescript/prefer-optional-chain`, `typescript/prefer-promise-reject-errors`, `typescript/prefer-readonly`, `typescript/prefer-readonly-parameter-types`, `typescript/prefer-reduce-type-parameter`, `typescript/prefer-regexp-exec`, `typescript/prefer-return-this-type`, `typescript/prefer-string-starts-ends-with`, `typescript/promise-function-async`, `typescript/related-getter-setter-pairs`, `typescript/require-array-sort-compare`, `typescript/require-await`, `typescript/restrict-plus-operands`, `typescript/restrict-template-expressions`, `typescript/return-await`, `typescript/strict-boolean-expressions`, `typescript/strict-void-return`, `typescript/switch-exhaustiveness-check`, `typescript/triple-slash-reference`, `typescript/unbound-method`, `typescript/unified-signatures`, `typescript/use-unknown-in-catch-callback-variable`
|
|
504
|
+
`class-methods-use-this`, `default-param-last`, `init-declarations`, `max-params`, `no-array-constructor`, `no-dupe-class-members`, `no-empty-function`, `no-loop-func`, `no-magic-numbers`, `no-redeclare`, `no-restricted-imports`, `no-shadow`, `no-unused-expressions`, `no-unused-private-class-members`, `no-unused-vars`, `no-use-before-define`, `no-useless-constructor`, `no-throw-literal`, `prefer-destructuring`, `prefer-promise-reject-errors`, `require-await`, `typescript/adjacent-overload-signatures`, `typescript/array-type`, `typescript/await-thenable`, `typescript/ban-ts-comment`, `typescript/ban-tslint-comment`, `typescript/class-literal-property-style`, `typescript/consistent-generic-constructors`, `typescript/consistent-indexed-object-style`, `typescript/consistent-return`, `typescript/consistent-type-assertions`, `typescript/consistent-type-definitions`, `typescript/consistent-type-exports`, `typescript/consistent-type-imports`, `typescript/dot-notation`, `typescript/explicit-function-return-type`, `typescript/explicit-member-accessibility`, `typescript/explicit-module-boundary-types`, `typescript/no-array-delete`, `typescript/no-base-to-string`, `typescript/no-confusing-non-null-assertion`, `typescript/no-confusing-void-expression`, `typescript/no-deprecated`, `typescript/no-duplicate-enum-values`, `typescript/no-duplicate-type-constituents`, `typescript/no-dynamic-delete`, `typescript/no-empty-object-type`, `typescript/no-explicit-any`, `typescript/no-extra-non-null-assertion`, `typescript/no-extraneous-class`, `typescript/no-floating-promises`, `typescript/no-for-in-array`, `typescript/no-implied-eval`, `typescript/no-import-type-side-effects`, `typescript/no-inferrable-types`, `typescript/no-invalid-void-type`, `typescript/no-meaningless-void-operator`, `typescript/no-misused-new`, `typescript/no-misused-promises`, `typescript/no-misused-spread`, `typescript/no-mixed-enums`, `typescript/no-namespace`, `typescript/no-non-null-asserted-nullish-coalescing`, `typescript/no-non-null-asserted-optional-chain`, `typescript/no-non-null-assertion`, `typescript/no-redundant-type-constituents`, `typescript/no-require-imports`, `typescript/no-restricted-types`, `typescript/no-this-alias`, `typescript/no-unnecessary-boolean-literal-compare`, `typescript/no-unnecessary-condition`, `typescript/no-unnecessary-parameter-property-assignment`, `typescript/no-unnecessary-qualifier`, `typescript/no-unnecessary-template-expression`, `typescript/no-unnecessary-type-arguments`, `typescript/no-unnecessary-type-assertion`, `typescript/no-unnecessary-type-constraint`, `typescript/no-unnecessary-type-conversion`, `typescript/no-unnecessary-type-parameters`, `typescript/no-unsafe-argument`, `typescript/no-unsafe-assignment`, `typescript/no-unsafe-call`, `typescript/no-unsafe-declaration-merging`, `typescript/no-unsafe-enum-comparison`, `typescript/no-unsafe-function-type`, `typescript/no-unsafe-member-access`, `typescript/no-unsafe-return`, `typescript/no-unsafe-type-assertion`, `typescript/no-unsafe-unary-minus`, `typescript/no-useless-default-assignment`, `typescript/no-useless-empty-export`, `typescript/no-wrapper-object-types`, `typescript/non-nullable-type-assertion-style`, `typescript/only-throw-error`, `typescript/parameter-properties`, `typescript/prefer-as-const`, `typescript/prefer-enum-initializers`, `typescript/prefer-find`, `typescript/prefer-for-of`, `typescript/prefer-function-type`, `typescript/prefer-includes`, `typescript/prefer-literal-enum-member`, `typescript/prefer-namespace-keyword`, `typescript/prefer-nullish-coalescing`, `typescript/prefer-optional-chain`, `typescript/prefer-promise-reject-errors`, `typescript/prefer-readonly`, `typescript/prefer-readonly-parameter-types`, `typescript/prefer-reduce-type-parameter`, `typescript/prefer-regexp-exec`, `typescript/prefer-return-this-type`, `typescript/prefer-string-starts-ends-with`, `typescript/promise-function-async`, `typescript/related-getter-setter-pairs`, `typescript/require-array-sort-compare`, `typescript/require-await`, `typescript/restrict-plus-operands`, `typescript/restrict-template-expressions`, `typescript/return-await`, `typescript/strict-boolean-expressions`, `typescript/strict-void-return`, `typescript/switch-exhaustiveness-check`, `typescript/triple-slash-reference`, `typescript/unbound-method`, `typescript/unified-signatures`, `typescript/use-unknown-in-catch-callback-variable`
|
|
481
505
|
|
|
482
506
|
</details>
|
|
483
507
|
|
|
484
508
|
<details>
|
|
485
|
-
<summary>
|
|
509
|
+
<summary>6 rules have no oxlint equivalent</summary>
|
|
486
510
|
|
|
487
511
|
**Not yet implemented in oxlint**
|
|
488
512
|
|
|
489
|
-
`@typescript-eslint/
|
|
513
|
+
`@typescript-eslint/member-ordering`, `@typescript-eslint/method-signature-style`, `@typescript-eslint/naming-convention`, `@typescript-eslint/no-unused-private-class-members`, `@typescript-eslint/prefer-destructuring`
|
|
490
514
|
|
|
491
515
|
**Not portable to oxlint**
|
|
492
516
|
|
|
@@ -678,11 +702,11 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
678
702
|
</details>
|
|
679
703
|
|
|
680
704
|
<details>
|
|
681
|
-
<summary>
|
|
705
|
+
<summary>112 rules have no oxlint equivalent</summary>
|
|
682
706
|
|
|
683
707
|
**Not yet implemented in oxlint**
|
|
684
708
|
|
|
685
|
-
`jsdoc/check-alignment`, `jsdoc/check-param-names`, `jsdoc/check-types`, `jsdoc/multiline-blocks`, `jsdoc/no-multi-asterisks`, `jsdoc/no-undefined-types`, `jsdoc/require-returns-check`, `jsdoc/require-throws-type`, `jsdoc/require-yields-check`, `jsdoc/tag-lines`, `jsdoc/valid-types`, `jsdoc/check-param-names`, `jsdoc/no-blank-blocks`, `jsdoc/no-blank-block-descriptions`, `jsdoc/no-multi-asterisks`, `jsdoc/require-asterisk-prefix`, `jsdoc/tag-lines`, `no-implicit-globals`, `no-underscore-dangle`, `no-unreachable-loop`, `prefer-regex-literals
|
|
709
|
+
`jsdoc/check-alignment`, `jsdoc/check-param-names`, `jsdoc/check-types`, `jsdoc/multiline-blocks`, `jsdoc/no-multi-asterisks`, `jsdoc/no-undefined-types`, `jsdoc/require-returns-check`, `jsdoc/require-throws-type`, `jsdoc/require-yields-check`, `jsdoc/tag-lines`, `jsdoc/valid-types`, `jsdoc/check-param-names`, `jsdoc/no-blank-blocks`, `jsdoc/no-blank-block-descriptions`, `jsdoc/no-multi-asterisks`, `jsdoc/require-asterisk-prefix`, `jsdoc/tag-lines`, `no-implicit-globals`, `no-underscore-dangle`, `no-unreachable-loop`, `prefer-regex-literals`
|
|
686
710
|
|
|
687
711
|
**Not portable to oxlint**
|
|
688
712
|
|
|
@@ -799,6 +823,7 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
799
823
|
</details>
|
|
800
824
|
|
|
801
825
|
> special parser detected: @babel/eslint-parser
|
|
826
|
+
> Added 768 globals to the root config. This may happen when your ESLint config uses a different version of the `globals` package than @oxlint/migrate. Try updating `globals` and rerun the migration to get a simpler config.
|
|
802
827
|
|
|
803
828
|
### `alloy/react.json`
|
|
804
829
|
|
|
@@ -837,18 +862,18 @@ Extracted from `eslint-config-alloy@5.1.2`.
|
|
|
837
862
|
Extracted from `eslint-config-alloy@5.1.2`.
|
|
838
863
|
|
|
839
864
|
<details>
|
|
840
|
-
<summary>
|
|
865
|
+
<summary>107 rules successfully migrated</summary>
|
|
841
866
|
|
|
842
|
-
`no-undef`, `class-methods-use-this`, `default-param-last`, `init-declarations`, `no-array-constructor`, `no-dupe-class-members`, `no-empty-function`, `no-loop-func`, `no-loss-of-precision`, `no-magic-numbers`, `no-redeclare`, `no-restricted-imports`, `no-shadow`, `no-throw-literal`, `no-unused-expressions`, `no-unused-vars`, `no-use-before-define`, `no-useless-constructor`, `require-await`, `typescript/adjacent-overload-signatures`, `typescript/array-type`, `typescript/await-thenable`, `typescript/ban-ts-comment`, `typescript/ban-tslint-comment`, `typescript/ban-types`, `typescript/class-literal-property-style`, `typescript/consistent-generic-constructors`, `typescript/consistent-indexed-object-style`, `typescript/consistent-type-assertions`, `typescript/consistent-type-definitions`, `typescript/consistent-type-exports`, `typescript/consistent-type-imports`, `typescript/dot-notation`, `typescript/explicit-function-return-type`, `typescript/explicit-module-boundary-types`, `typescript/no-base-to-string`, `typescript/no-confusing-non-null-assertion`, `typescript/no-confusing-void-expression`, `typescript/no-duplicate-enum-values`, `typescript/no-duplicate-type-constituents`, `typescript/no-dynamic-delete`, `typescript/no-empty-interface`, `typescript/no-explicit-any`, `typescript/no-extra-non-null-assertion`, `typescript/no-extraneous-class`, `typescript/no-floating-promises`, `typescript/no-for-in-array`, `typescript/no-implied-eval`, `typescript/no-import-type-side-effects`, `typescript/no-inferrable-types`, `typescript/no-invalid-void-type`, `typescript/no-meaningless-void-operator`, `typescript/no-misused-new`, `typescript/no-misused-promises`, `typescript/no-mixed-enums`, `typescript/no-namespace`, `typescript/no-non-null-asserted-nullish-coalescing`, `typescript/no-non-null-asserted-optional-chain`, `typescript/no-non-null-assertion`, `typescript/no-redundant-type-constituents`, `typescript/no-require-imports`, `typescript/no-this-alias`, `typescript/no-unnecessary-boolean-literal-compare`, `typescript/no-unnecessary-condition`, `typescript/no-unnecessary-qualifier`, `typescript/no-unnecessary-type-arguments`, `typescript/no-unnecessary-type-assertion`, `typescript/no-unnecessary-type-constraint`, `typescript/no-unsafe-argument`, `typescript/no-unsafe-assignment`, `typescript/no-unsafe-call`, `typescript/no-unsafe-declaration-merging`, `typescript/no-unsafe-enum-comparison`, `typescript/no-unsafe-member-access`, `typescript/no-unsafe-return`, `typescript/no-useless-empty-export`, `typescript/no-var-requires`, `typescript/non-nullable-type-assertion-style`, `typescript/parameter-properties`, `typescript/prefer-as-const`, `typescript/prefer-enum-initializers`, `typescript/prefer-for-of`, `typescript/prefer-function-type`, `typescript/prefer-includes`, `typescript/prefer-literal-enum-member`, `typescript/prefer-namespace-keyword`, `typescript/prefer-nullish-coalescing`, `typescript/prefer-optional-chain`, `typescript/prefer-readonly`, `typescript/prefer-readonly-parameter-types`, `typescript/prefer-reduce-type-parameter`, `typescript/prefer-regexp-exec`, `typescript/prefer-return-this-type`, `typescript/prefer-string-starts-ends-with`, `typescript/prefer-ts-expect-error`, `typescript/promise-function-async`, `typescript/require-array-sort-compare`, `typescript/require-await`, `typescript/restrict-plus-operands`, `typescript/restrict-template-expressions`, `typescript/return-await`, `typescript/strict-boolean-expressions`, `typescript/switch-exhaustiveness-check`, `typescript/triple-slash-reference`, `typescript/unbound-method`, `typescript/unified-signatures`
|
|
867
|
+
`no-undef`, `class-methods-use-this`, `default-param-last`, `init-declarations`, `no-array-constructor`, `no-dupe-class-members`, `no-empty-function`, `no-loop-func`, `no-loss-of-precision`, `no-magic-numbers`, `no-redeclare`, `no-restricted-imports`, `no-shadow`, `no-throw-literal`, `no-unused-expressions`, `no-unused-vars`, `no-use-before-define`, `no-useless-constructor`, `require-await`, `typescript/adjacent-overload-signatures`, `typescript/array-type`, `typescript/await-thenable`, `typescript/ban-ts-comment`, `typescript/ban-tslint-comment`, `typescript/ban-types`, `typescript/class-literal-property-style`, `typescript/consistent-generic-constructors`, `typescript/consistent-indexed-object-style`, `typescript/consistent-type-assertions`, `typescript/consistent-type-definitions`, `typescript/consistent-type-exports`, `typescript/consistent-type-imports`, `typescript/dot-notation`, `typescript/explicit-function-return-type`, `typescript/explicit-member-accessibility`, `typescript/explicit-module-boundary-types`, `typescript/no-base-to-string`, `typescript/no-confusing-non-null-assertion`, `typescript/no-confusing-void-expression`, `typescript/no-duplicate-enum-values`, `typescript/no-duplicate-type-constituents`, `typescript/no-dynamic-delete`, `typescript/no-empty-interface`, `typescript/no-explicit-any`, `typescript/no-extra-non-null-assertion`, `typescript/no-extraneous-class`, `typescript/no-floating-promises`, `typescript/no-for-in-array`, `typescript/no-implied-eval`, `typescript/no-import-type-side-effects`, `typescript/no-inferrable-types`, `typescript/no-invalid-void-type`, `typescript/no-meaningless-void-operator`, `typescript/no-misused-new`, `typescript/no-misused-promises`, `typescript/no-mixed-enums`, `typescript/no-namespace`, `typescript/no-non-null-asserted-nullish-coalescing`, `typescript/no-non-null-asserted-optional-chain`, `typescript/no-non-null-assertion`, `typescript/no-redundant-type-constituents`, `typescript/no-require-imports`, `typescript/no-this-alias`, `typescript/no-unnecessary-boolean-literal-compare`, `typescript/no-unnecessary-condition`, `typescript/no-unnecessary-qualifier`, `typescript/no-unnecessary-type-arguments`, `typescript/no-unnecessary-type-assertion`, `typescript/no-unnecessary-type-constraint`, `typescript/no-unsafe-argument`, `typescript/no-unsafe-assignment`, `typescript/no-unsafe-call`, `typescript/no-unsafe-declaration-merging`, `typescript/no-unsafe-enum-comparison`, `typescript/no-unsafe-member-access`, `typescript/no-unsafe-return`, `typescript/no-useless-empty-export`, `typescript/no-var-requires`, `typescript/non-nullable-type-assertion-style`, `typescript/parameter-properties`, `typescript/prefer-as-const`, `typescript/prefer-enum-initializers`, `typescript/prefer-for-of`, `typescript/prefer-function-type`, `typescript/prefer-includes`, `typescript/prefer-literal-enum-member`, `typescript/prefer-namespace-keyword`, `typescript/prefer-nullish-coalescing`, `typescript/prefer-optional-chain`, `typescript/prefer-readonly`, `typescript/prefer-readonly-parameter-types`, `typescript/prefer-reduce-type-parameter`, `typescript/prefer-regexp-exec`, `typescript/prefer-return-this-type`, `typescript/prefer-string-starts-ends-with`, `typescript/prefer-ts-expect-error`, `typescript/promise-function-async`, `typescript/require-array-sort-compare`, `typescript/require-await`, `typescript/restrict-plus-operands`, `typescript/restrict-template-expressions`, `typescript/return-await`, `typescript/strict-boolean-expressions`, `typescript/switch-exhaustiveness-check`, `typescript/triple-slash-reference`, `typescript/unbound-method`, `typescript/unified-signatures`
|
|
843
868
|
|
|
844
869
|
</details>
|
|
845
870
|
|
|
846
871
|
<details>
|
|
847
|
-
<summary>
|
|
872
|
+
<summary>4 rules have no oxlint equivalent</summary>
|
|
848
873
|
|
|
849
874
|
**Not yet implemented in oxlint**
|
|
850
875
|
|
|
851
|
-
`@typescript-eslint/
|
|
876
|
+
`@typescript-eslint/member-ordering`, `@typescript-eslint/method-signature-style`
|
|
852
877
|
|
|
853
878
|
**Not portable to oxlint**
|
|
854
879
|
|
|
@@ -1658,18 +1683,9 @@ Extracted from `eslint-plugin-promise@7.2.1`.
|
|
|
1658
1683
|
Extracted from `eslint-plugin-jest@28.14.0`.
|
|
1659
1684
|
|
|
1660
1685
|
<details>
|
|
1661
|
-
<summary>
|
|
1662
|
-
|
|
1663
|
-
`jest/expect-expect`, `jest/no-alias-methods`, `jest/no-commented-out-tests`, `jest/no-conditional-expect`, `jest/no-deprecated-functions`, `jest/no-disabled-tests`, `jest/no-done-callback`, `jest/no-export`, `jest/no-focused-tests`, `jest/no-identical-title`, `jest/no-interpolation-in-snapshots`, `jest/no-jasmine-globals`, `jest/no-mocks-import`, `jest/no-standalone-expect`, `jest/no-test-prefixes`, `jest/valid-describe-callback`, `jest/valid-expect`, `jest/valid-title`
|
|
1664
|
-
|
|
1665
|
-
</details>
|
|
1666
|
-
|
|
1667
|
-
<details>
|
|
1668
|
-
<summary>1 rules have no oxlint equivalent</summary>
|
|
1686
|
+
<summary>19 rules successfully migrated</summary>
|
|
1669
1687
|
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
`jest/valid-expect-in-promise`
|
|
1688
|
+
`jest/expect-expect`, `jest/no-alias-methods`, `jest/no-commented-out-tests`, `jest/no-conditional-expect`, `jest/no-deprecated-functions`, `jest/no-disabled-tests`, `jest/no-done-callback`, `jest/no-export`, `jest/no-focused-tests`, `jest/no-identical-title`, `jest/no-interpolation-in-snapshots`, `jest/no-jasmine-globals`, `jest/no-mocks-import`, `jest/no-standalone-expect`, `jest/no-test-prefixes`, `jest/valid-describe-callback`, `jest/valid-expect`, `jest/valid-expect-in-promise`, `jest/valid-title`
|
|
1673
1689
|
|
|
1674
1690
|
</details>
|
|
1675
1691
|
|
|
@@ -1682,18 +1698,18 @@ Extracted from `eslint-plugin-jest@28.14.0`.
|
|
|
1682
1698
|
Extracted from `eslint-plugin-jest@28.14.0`.
|
|
1683
1699
|
|
|
1684
1700
|
<details>
|
|
1685
|
-
<summary>
|
|
1701
|
+
<summary>55 rules successfully migrated</summary>
|
|
1686
1702
|
|
|
1687
|
-
`jest/consistent-test-it`, `jest/expect-expect`, `jest/max-expects`, `jest/max-nested-describe`, `jest/no-alias-methods`, `jest/no-commented-out-tests`, `jest/no-conditional-expect`, `jest/no-conditional-in-test`, `jest/no-confusing-set-timeout`, `jest/no-deprecated-functions`, `jest/no-disabled-tests`, `jest/no-done-callback`, `jest/no-duplicate-hooks`, `jest/no-export`, `jest/no-focused-tests`, `jest/no-hooks`, `jest/no-identical-title`, `jest/no-interpolation-in-snapshots`, `jest/no-jasmine-globals`, `jest/no-large-snapshots`, `jest/no-mocks-import`, `jest/no-restricted-jest-methods`, `jest/no-restricted-matchers`, `jest/no-standalone-expect`, `jest/no-test-prefixes`, `jest/no-test-return-statement`, `jest/no-untyped-mock-factory`, `jest/padding-around-after-all-blocks`, `jest/padding-around-test-blocks`, `jest/prefer-called-with`, `jest/prefer-comparison-matcher`, `jest/prefer-each`, `jest/prefer-equality-matcher`, `jest/prefer-expect-resolves`, `jest/prefer-hooks-in-order`, `jest/prefer-hooks-on-top`, `jest/prefer-jest-mocked`, `jest/prefer-lowercase-title`, `jest/prefer-mock-promise-shorthand`, `jest/prefer-snapshot-hint`, `jest/prefer-spy-on`, `jest/prefer-strict-equal`, `jest/prefer-to-be`, `jest/prefer-to-contain`, `jest/prefer-to-have-length`, `jest/prefer-todo`, `jest/require-hook`, `jest/require-to-throw-message`, `jest/require-top-level-describe`, `jest/valid-describe-callback`, `jest/valid-expect`, `jest/valid-title`
|
|
1703
|
+
`jest/consistent-test-it`, `jest/expect-expect`, `jest/max-expects`, `jest/max-nested-describe`, `jest/no-alias-methods`, `jest/no-commented-out-tests`, `jest/no-conditional-expect`, `jest/no-conditional-in-test`, `jest/no-confusing-set-timeout`, `jest/no-deprecated-functions`, `jest/no-disabled-tests`, `jest/no-done-callback`, `jest/no-duplicate-hooks`, `jest/no-export`, `jest/no-focused-tests`, `jest/no-hooks`, `jest/no-identical-title`, `jest/no-interpolation-in-snapshots`, `jest/no-jasmine-globals`, `jest/no-large-snapshots`, `jest/no-mocks-import`, `jest/no-restricted-jest-methods`, `jest/no-restricted-matchers`, `jest/no-standalone-expect`, `jest/no-test-prefixes`, `jest/no-test-return-statement`, `jest/no-untyped-mock-factory`, `jest/padding-around-after-all-blocks`, `jest/padding-around-test-blocks`, `jest/prefer-called-with`, `jest/prefer-comparison-matcher`, `jest/prefer-each`, `jest/prefer-ending-with-an-expect`, `jest/prefer-equality-matcher`, `jest/prefer-expect-resolves`, `jest/prefer-hooks-in-order`, `jest/prefer-hooks-on-top`, `jest/prefer-importing-jest-globals`, `jest/prefer-jest-mocked`, `jest/prefer-lowercase-title`, `jest/prefer-mock-promise-shorthand`, `jest/prefer-snapshot-hint`, `jest/prefer-spy-on`, `jest/prefer-strict-equal`, `jest/prefer-to-be`, `jest/prefer-to-contain`, `jest/prefer-to-have-length`, `jest/prefer-todo`, `jest/require-hook`, `jest/require-to-throw-message`, `jest/require-top-level-describe`, `jest/valid-describe-callback`, `jest/valid-expect-in-promise`, `jest/valid-expect`, `jest/valid-title`
|
|
1688
1704
|
|
|
1689
1705
|
</details>
|
|
1690
1706
|
|
|
1691
1707
|
<details>
|
|
1692
|
-
<summary>
|
|
1708
|
+
<summary>8 rules have no oxlint equivalent</summary>
|
|
1693
1709
|
|
|
1694
1710
|
**Not yet implemented in oxlint**
|
|
1695
1711
|
|
|
1696
|
-
`jest/padding-around-after-each-blocks`, `jest/padding-around-all`, `jest/padding-around-before-all-blocks`, `jest/padding-around-before-each-blocks`, `jest/padding-around-describe-blocks`, `jest/padding-around-expect-groups`, `jest/prefer-
|
|
1712
|
+
`jest/padding-around-after-each-blocks`, `jest/padding-around-all`, `jest/padding-around-before-all-blocks`, `jest/padding-around-before-each-blocks`, `jest/padding-around-describe-blocks`, `jest/padding-around-expect-groups`, `jest/prefer-expect-assertions`
|
|
1697
1713
|
|
|
1698
1714
|
**Not portable to oxlint**
|
|
1699
1715
|
|
|
@@ -1725,18 +1741,9 @@ Extracted from `eslint-plugin-jest@28.14.0`.
|
|
|
1725
1741
|
Extracted from `@vitest/eslint-plugin@1.6.13`.
|
|
1726
1742
|
|
|
1727
1743
|
<details>
|
|
1728
|
-
<summary>
|
|
1729
|
-
|
|
1730
|
-
`vitest/expect-expect`, `vitest/no-commented-out-tests`, `vitest/no-conditional-expect`, `vitest/no-disabled-tests`, `vitest/no-focused-tests`, `vitest/no-identical-title`, `vitest/no-import-node-test`, `vitest/no-interpolation-in-snapshots`, `vitest/no-mocks-import`, `vitest/no-standalone-expect`, `vitest/no-unneeded-async-expect-function`, `vitest/prefer-called-exactly-once-with`, `vitest/require-local-test-context-for-concurrent-snapshots`, `vitest/valid-describe-callback`, `vitest/valid-expect`, `vitest/valid-title`
|
|
1731
|
-
|
|
1732
|
-
</details>
|
|
1733
|
-
|
|
1734
|
-
<details>
|
|
1735
|
-
<summary>1 rules have no oxlint equivalent</summary>
|
|
1736
|
-
|
|
1737
|
-
**Not yet implemented in oxlint**
|
|
1744
|
+
<summary>17 rules successfully migrated</summary>
|
|
1738
1745
|
|
|
1739
|
-
`vitest/valid-expect-in-promise`
|
|
1746
|
+
`vitest/expect-expect`, `vitest/no-commented-out-tests`, `vitest/no-conditional-expect`, `vitest/no-disabled-tests`, `vitest/no-focused-tests`, `vitest/no-identical-title`, `vitest/no-import-node-test`, `vitest/no-interpolation-in-snapshots`, `vitest/no-mocks-import`, `vitest/no-standalone-expect`, `vitest/no-unneeded-async-expect-function`, `vitest/prefer-called-exactly-once-with`, `vitest/require-local-test-context-for-concurrent-snapshots`, `vitest/valid-describe-callback`, `vitest/valid-expect`, `vitest/valid-expect-in-promise`, `vitest/valid-title`
|
|
1740
1747
|
|
|
1741
1748
|
</details>
|
|
1742
1749
|
|
|
@@ -1749,18 +1756,18 @@ Extracted from `@vitest/eslint-plugin@1.6.13`.
|
|
|
1749
1756
|
Extracted from `@vitest/eslint-plugin@1.6.13`.
|
|
1750
1757
|
|
|
1751
1758
|
<details>
|
|
1752
|
-
<summary>
|
|
1759
|
+
<summary>67 rules successfully migrated</summary>
|
|
1753
1760
|
|
|
1754
|
-
`vitest/consistent-each-for`, `vitest/consistent-test-filename`, `vitest/consistent-test-it`, `vitest/consistent-vitest-vi`, `vitest/expect-expect`, `vitest/hoisted-apis-on-top`, `vitest/max-expects`, `vitest/max-nested-describe`, `vitest/no-alias-methods`, `vitest/no-commented-out-tests`, `vitest/no-conditional-expect`, `vitest/no-conditional-in-test`, `vitest/no-conditional-tests`, `vitest/no-disabled-tests`, `vitest/no-duplicate-hooks`, `vitest/no-focused-tests`, `vitest/no-hooks`, `vitest/no-identical-title`, `vitest/no-import-node-test`, `vitest/no-importing-vitest-globals`, `vitest/no-interpolation-in-snapshots`, `vitest/no-large-snapshots`, `vitest/no-mocks-import`, `vitest/no-restricted-matchers`, `vitest/no-standalone-expect`, `vitest/no-test-prefixes`, `vitest/no-test-return-statement`, `vitest/no-unneeded-async-expect-function`, `vitest/prefer-called-exactly-once-with`, `vitest/prefer-called-once`, `vitest/prefer-called-times`, `vitest/prefer-called-with`, `vitest/prefer-comparison-matcher`, `vitest/prefer-describe-function-title`, `vitest/prefer-each`, `vitest/prefer-equality-matcher`, `vitest/prefer-expect-resolves`, `vitest/prefer-expect-type-of`, `vitest/prefer-hooks-in-order`, `vitest/prefer-hooks-on-top`, `vitest/prefer-import-in-mock`, `vitest/prefer-importing-vitest-globals`, `vitest/prefer-lowercase-title`, `vitest/prefer-mock-promise-shorthand`, `vitest/prefer-snapshot-hint`, `vitest/prefer-spy-on`, `vitest/prefer-strict-boolean-matchers`, `vitest/prefer-strict-equal`, `vitest/prefer-to-be-falsy`, `vitest/prefer-to-be-object`, `vitest/prefer-to-be-truthy`, `vitest/prefer-to-be`, `vitest/prefer-to-contain`, `vitest/prefer-to-have-been-called-times`, `vitest/prefer-to-have-length`, `vitest/prefer-todo`, `vitest/require-awaited-expect-poll`, `vitest/require-hook`, `vitest/require-local-test-context-for-concurrent-snapshots`, `vitest/require-mock-type-parameters`, `vitest/require-test-timeout`, `vitest/require-to-throw-message`, `vitest/require-top-level-describe`, `vitest/valid-describe-callback`, `vitest/valid-expect`, `vitest/valid-title`
|
|
1761
|
+
`vitest/consistent-each-for`, `vitest/consistent-test-filename`, `vitest/consistent-test-it`, `vitest/consistent-vitest-vi`, `vitest/expect-expect`, `vitest/hoisted-apis-on-top`, `vitest/max-expects`, `vitest/max-nested-describe`, `vitest/no-alias-methods`, `vitest/no-commented-out-tests`, `vitest/no-conditional-expect`, `vitest/no-conditional-in-test`, `vitest/no-conditional-tests`, `vitest/no-disabled-tests`, `vitest/no-duplicate-hooks`, `vitest/no-focused-tests`, `vitest/no-hooks`, `vitest/no-identical-title`, `vitest/no-import-node-test`, `vitest/no-importing-vitest-globals`, `vitest/no-interpolation-in-snapshots`, `vitest/no-large-snapshots`, `vitest/no-mocks-import`, `vitest/no-restricted-matchers`, `vitest/no-standalone-expect`, `vitest/no-test-prefixes`, `vitest/no-test-return-statement`, `vitest/no-unneeded-async-expect-function`, `vitest/prefer-called-exactly-once-with`, `vitest/prefer-called-once`, `vitest/prefer-called-times`, `vitest/prefer-called-with`, `vitest/prefer-comparison-matcher`, `vitest/prefer-describe-function-title`, `vitest/prefer-each`, `vitest/prefer-equality-matcher`, `vitest/prefer-expect-resolves`, `vitest/prefer-expect-type-of`, `vitest/prefer-hooks-in-order`, `vitest/prefer-hooks-on-top`, `vitest/prefer-import-in-mock`, `vitest/prefer-importing-vitest-globals`, `vitest/prefer-lowercase-title`, `vitest/prefer-mock-promise-shorthand`, `vitest/prefer-snapshot-hint`, `vitest/prefer-spy-on`, `vitest/prefer-strict-boolean-matchers`, `vitest/prefer-strict-equal`, `vitest/prefer-to-be-falsy`, `vitest/prefer-to-be-object`, `vitest/prefer-to-be-truthy`, `vitest/prefer-to-be`, `vitest/prefer-to-contain`, `vitest/prefer-to-have-been-called-times`, `vitest/prefer-to-have-length`, `vitest/prefer-todo`, `vitest/require-awaited-expect-poll`, `vitest/require-hook`, `vitest/require-local-test-context-for-concurrent-snapshots`, `vitest/require-mock-type-parameters`, `vitest/require-test-timeout`, `vitest/require-to-throw-message`, `vitest/require-top-level-describe`, `vitest/valid-describe-callback`, `vitest/valid-expect-in-promise`, `vitest/valid-expect`, `vitest/valid-title`
|
|
1755
1762
|
|
|
1756
1763
|
</details>
|
|
1757
1764
|
|
|
1758
1765
|
<details>
|
|
1759
|
-
<summary>
|
|
1766
|
+
<summary>12 rules have no oxlint equivalent</summary>
|
|
1760
1767
|
|
|
1761
1768
|
**Not yet implemented in oxlint**
|
|
1762
1769
|
|
|
1763
|
-
`vitest/no-restricted-vi-methods`, `vitest/padding-around-after-all-blocks`, `vitest/padding-around-after-each-blocks`, `vitest/padding-around-all`, `vitest/padding-around-before-all-blocks`, `vitest/padding-around-before-each-blocks`, `vitest/padding-around-describe-blocks`, `vitest/padding-around-expect-groups`, `vitest/padding-around-test-blocks`, `vitest/prefer-expect-assertions
|
|
1770
|
+
`vitest/no-restricted-vi-methods`, `vitest/padding-around-after-all-blocks`, `vitest/padding-around-after-each-blocks`, `vitest/padding-around-all`, `vitest/padding-around-before-all-blocks`, `vitest/padding-around-before-each-blocks`, `vitest/padding-around-describe-blocks`, `vitest/padding-around-expect-groups`, `vitest/padding-around-test-blocks`, `vitest/prefer-expect-assertions`
|
|
1764
1771
|
|
|
1765
1772
|
**Not portable to oxlint**
|
|
1766
1773
|
|
package/alloy/typescript.json
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"typescript/consistent-type-imports": "error",
|
|
52
52
|
"typescript/dot-notation": "off",
|
|
53
53
|
"typescript/explicit-function-return-type": "off",
|
|
54
|
+
"typescript/explicit-member-accessibility": "error",
|
|
54
55
|
"typescript/explicit-module-boundary-types": "off",
|
|
55
56
|
"typescript/no-base-to-string": "off",
|
|
56
57
|
"typescript/no-confusing-non-null-assertion": "off",
|
package/jest/all.json
CHANGED
|
@@ -33,10 +33,12 @@
|
|
|
33
33
|
"jest/prefer-called-with": "error",
|
|
34
34
|
"jest/prefer-comparison-matcher": "error",
|
|
35
35
|
"jest/prefer-each": "error",
|
|
36
|
+
"jest/prefer-ending-with-an-expect": "error",
|
|
36
37
|
"jest/prefer-equality-matcher": "error",
|
|
37
38
|
"jest/prefer-expect-resolves": "error",
|
|
38
39
|
"jest/prefer-hooks-in-order": "error",
|
|
39
40
|
"jest/prefer-hooks-on-top": "error",
|
|
41
|
+
"jest/prefer-importing-jest-globals": "error",
|
|
40
42
|
"jest/prefer-jest-mocked": "error",
|
|
41
43
|
"jest/prefer-lowercase-title": "error",
|
|
42
44
|
"jest/prefer-mock-promise-shorthand": "error",
|
|
@@ -51,6 +53,7 @@
|
|
|
51
53
|
"jest/require-to-throw-message": "error",
|
|
52
54
|
"jest/require-top-level-describe": "error",
|
|
53
55
|
"jest/valid-describe-callback": "error",
|
|
56
|
+
"jest/valid-expect-in-promise": "error",
|
|
54
57
|
"jest/valid-expect": "error",
|
|
55
58
|
"jest/valid-title": "error"
|
|
56
59
|
}
|
package/jest/recommended.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-config-presets",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Oxlint configurations ported from popular ESLint styleguides",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -18,5 +18,19 @@
|
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "git+https://github.com/popup-plus/oxlint-config-presets.git"
|
|
20
20
|
},
|
|
21
|
-
"type": "module"
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
"./*.json": {
|
|
24
|
+
"types": "./oxlint-config.d.ts",
|
|
25
|
+
"default": "./*.json"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"oxlint": ">=0.15.0"
|
|
30
|
+
},
|
|
31
|
+
"peerDependenciesMeta": {
|
|
32
|
+
"oxlint": {
|
|
33
|
+
"optional": true
|
|
34
|
+
}
|
|
35
|
+
}
|
|
22
36
|
}
|