oxlint-config-presets 0.1.7 → 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 +31 -41
- package/alloy/typescript.json +1 -0
- package/jest/all.json +3 -0
- package/jest/recommended.json +1 -0
- package/package.json +1 -1
|
@@ -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
|
@@ -160,7 +160,7 @@ export default defineConfig({
|
|
|
160
160
|
- vue2-strongly-recommended `vue/vue2-strongly-recommended.json`
|
|
161
161
|
- vue2-strongly-recommended-error `vue/vue2-strongly-recommended-error.json`
|
|
162
162
|
|
|
163
|
-
Generated with `@oxlint/migrate@1.
|
|
163
|
+
Generated with `@oxlint/migrate@1.61.0`.
|
|
164
164
|
|
|
165
165
|
### `airbnb.json`
|
|
166
166
|
|
|
@@ -206,6 +206,7 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
206
206
|
> react.version "detect" is not supported. Specify an explicit version (e.g., "18.2.0") in your oxlint config.
|
|
207
207
|
> `react.pragma`
|
|
208
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.
|
|
209
210
|
|
|
210
211
|
### `airbnb/base.json`
|
|
211
212
|
|
|
@@ -248,6 +249,7 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
248
249
|
> `import/extensions`
|
|
249
250
|
> `import/core-modules`
|
|
250
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.
|
|
251
253
|
|
|
252
254
|
### `airbnb/hooks.json`
|
|
253
255
|
|
|
@@ -292,6 +294,8 @@ Extracted from `eslint-config-airbnb@19.0.4`.
|
|
|
292
294
|
|
|
293
295
|
</details>
|
|
294
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
|
+
|
|
295
299
|
### `airbnb/whitespace.json`
|
|
296
300
|
|
|
297
301
|
```json
|
|
@@ -336,6 +340,7 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
336
340
|
> react.version "detect" is not supported. Specify an explicit version (e.g., "18.2.0") in your oxlint config.
|
|
337
341
|
> `react.pragma`
|
|
338
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.
|
|
339
344
|
|
|
340
345
|
### `standard.json`
|
|
341
346
|
|
|
@@ -365,6 +370,8 @@ Extracted from `eslint-config-standard@17.1.0`.
|
|
|
365
370
|
|
|
366
371
|
</details>
|
|
367
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
|
+
|
|
368
375
|
### `google.json`
|
|
369
376
|
|
|
370
377
|
```json
|
|
@@ -492,18 +499,18 @@ Extracted from `@typescript-eslint/eslint-plugin@8.57.2`.
|
|
|
492
499
|
Extracted from `@typescript-eslint/eslint-plugin@8.57.2`.
|
|
493
500
|
|
|
494
501
|
<details>
|
|
495
|
-
<summary>
|
|
502
|
+
<summary>126 rules successfully migrated</summary>
|
|
496
503
|
|
|
497
|
-
`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`
|
|
498
505
|
|
|
499
506
|
</details>
|
|
500
507
|
|
|
501
508
|
<details>
|
|
502
|
-
<summary>
|
|
509
|
+
<summary>6 rules have no oxlint equivalent</summary>
|
|
503
510
|
|
|
504
511
|
**Not yet implemented in oxlint**
|
|
505
512
|
|
|
506
|
-
`@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`
|
|
507
514
|
|
|
508
515
|
**Not portable to oxlint**
|
|
509
516
|
|
|
@@ -695,11 +702,11 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
695
702
|
</details>
|
|
696
703
|
|
|
697
704
|
<details>
|
|
698
|
-
<summary>
|
|
705
|
+
<summary>112 rules have no oxlint equivalent</summary>
|
|
699
706
|
|
|
700
707
|
**Not yet implemented in oxlint**
|
|
701
708
|
|
|
702
|
-
`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`
|
|
703
710
|
|
|
704
711
|
**Not portable to oxlint**
|
|
705
712
|
|
|
@@ -816,6 +823,7 @@ These rules are enabled but their configuration options were dropped because oxl
|
|
|
816
823
|
</details>
|
|
817
824
|
|
|
818
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.
|
|
819
827
|
|
|
820
828
|
### `alloy/react.json`
|
|
821
829
|
|
|
@@ -854,18 +862,18 @@ Extracted from `eslint-config-alloy@5.1.2`.
|
|
|
854
862
|
Extracted from `eslint-config-alloy@5.1.2`.
|
|
855
863
|
|
|
856
864
|
<details>
|
|
857
|
-
<summary>
|
|
865
|
+
<summary>107 rules successfully migrated</summary>
|
|
858
866
|
|
|
859
|
-
`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`
|
|
860
868
|
|
|
861
869
|
</details>
|
|
862
870
|
|
|
863
871
|
<details>
|
|
864
|
-
<summary>
|
|
872
|
+
<summary>4 rules have no oxlint equivalent</summary>
|
|
865
873
|
|
|
866
874
|
**Not yet implemented in oxlint**
|
|
867
875
|
|
|
868
|
-
`@typescript-eslint/
|
|
876
|
+
`@typescript-eslint/member-ordering`, `@typescript-eslint/method-signature-style`
|
|
869
877
|
|
|
870
878
|
**Not portable to oxlint**
|
|
871
879
|
|
|
@@ -1675,18 +1683,9 @@ Extracted from `eslint-plugin-promise@7.2.1`.
|
|
|
1675
1683
|
Extracted from `eslint-plugin-jest@28.14.0`.
|
|
1676
1684
|
|
|
1677
1685
|
<details>
|
|
1678
|
-
<summary>
|
|
1686
|
+
<summary>19 rules successfully migrated</summary>
|
|
1679
1687
|
|
|
1680
|
-
`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`
|
|
1681
|
-
|
|
1682
|
-
</details>
|
|
1683
|
-
|
|
1684
|
-
<details>
|
|
1685
|
-
<summary>1 rules have no oxlint equivalent</summary>
|
|
1686
|
-
|
|
1687
|
-
**Not yet implemented in oxlint**
|
|
1688
|
-
|
|
1689
|
-
`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`
|
|
1690
1689
|
|
|
1691
1690
|
</details>
|
|
1692
1691
|
|
|
@@ -1699,18 +1698,18 @@ Extracted from `eslint-plugin-jest@28.14.0`.
|
|
|
1699
1698
|
Extracted from `eslint-plugin-jest@28.14.0`.
|
|
1700
1699
|
|
|
1701
1700
|
<details>
|
|
1702
|
-
<summary>
|
|
1701
|
+
<summary>55 rules successfully migrated</summary>
|
|
1703
1702
|
|
|
1704
|
-
`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`
|
|
1705
1704
|
|
|
1706
1705
|
</details>
|
|
1707
1706
|
|
|
1708
1707
|
<details>
|
|
1709
|
-
<summary>
|
|
1708
|
+
<summary>8 rules have no oxlint equivalent</summary>
|
|
1710
1709
|
|
|
1711
1710
|
**Not yet implemented in oxlint**
|
|
1712
1711
|
|
|
1713
|
-
`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`
|
|
1714
1713
|
|
|
1715
1714
|
**Not portable to oxlint**
|
|
1716
1715
|
|
|
@@ -1742,18 +1741,9 @@ Extracted from `eslint-plugin-jest@28.14.0`.
|
|
|
1742
1741
|
Extracted from `@vitest/eslint-plugin@1.6.13`.
|
|
1743
1742
|
|
|
1744
1743
|
<details>
|
|
1745
|
-
<summary>
|
|
1746
|
-
|
|
1747
|
-
`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`
|
|
1748
|
-
|
|
1749
|
-
</details>
|
|
1750
|
-
|
|
1751
|
-
<details>
|
|
1752
|
-
<summary>1 rules have no oxlint equivalent</summary>
|
|
1744
|
+
<summary>17 rules successfully migrated</summary>
|
|
1753
1745
|
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
`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`
|
|
1757
1747
|
|
|
1758
1748
|
</details>
|
|
1759
1749
|
|
|
@@ -1766,18 +1756,18 @@ Extracted from `@vitest/eslint-plugin@1.6.13`.
|
|
|
1766
1756
|
Extracted from `@vitest/eslint-plugin@1.6.13`.
|
|
1767
1757
|
|
|
1768
1758
|
<details>
|
|
1769
|
-
<summary>
|
|
1759
|
+
<summary>67 rules successfully migrated</summary>
|
|
1770
1760
|
|
|
1771
|
-
`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`
|
|
1772
1762
|
|
|
1773
1763
|
</details>
|
|
1774
1764
|
|
|
1775
1765
|
<details>
|
|
1776
|
-
<summary>
|
|
1766
|
+
<summary>12 rules have no oxlint equivalent</summary>
|
|
1777
1767
|
|
|
1778
1768
|
**Not yet implemented in oxlint**
|
|
1779
1769
|
|
|
1780
|
-
`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`
|
|
1781
1771
|
|
|
1782
1772
|
**Not portable to oxlint**
|
|
1783
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