Skip to content

Commit eb9de97

Browse files
authored
release: v1.39.0 (#328)
Co-authored-by: Boshen <Boshen@users.noreply.github.com>
1 parent f49e1a0 commit eb9de97

File tree

7 files changed

+77
-56
lines changed

7 files changed

+77
-56
lines changed

integration_test/__snapshots__/many-extends.spec.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ exports[`many-extends.spec.ts > many-extends.spec.ts 1`] = `
320320
"unsupported rule: @typescript-eslint/prefer-find",
321321
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-includes",
322322
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-nullish-coalescing",
323-
"unsupported rule: @typescript-eslint/prefer-optional-chain",
323+
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-optional-chain",
324324
"unsupported rule: @typescript-eslint/prefer-regexp-exec",
325325
"unsupported rule: @typescript-eslint/prefer-string-starts-ends-with",
326326
"unsupported rule: react/jsx-uses-react",
@@ -651,7 +651,7 @@ exports[`many-extends.spec.ts --js-plugins > many-extends.spec.ts--js-plugins 1`
651651
"unsupported rule: @typescript-eslint/prefer-find",
652652
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-includes",
653653
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-nullish-coalescing",
654-
"unsupported rule: @typescript-eslint/prefer-optional-chain",
654+
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-optional-chain",
655655
"unsupported rule: @typescript-eslint/prefer-regexp-exec",
656656
"unsupported rule: @typescript-eslint/prefer-string-starts-ends-with",
657657
"unsupported rule: react/jsx-uses-react",
@@ -756,6 +756,7 @@ exports[`many-extends.spec.ts --type-aware > many-extends.spec.ts--type-aware 1`
756756
"@typescript-eslint/prefer-literal-enum-member": "error",
757757
"@typescript-eslint/prefer-namespace-keyword": "error",
758758
"@typescript-eslint/prefer-nullish-coalescing": "error",
759+
"@typescript-eslint/prefer-optional-chain": "error",
759760
"@typescript-eslint/prefer-promise-reject-errors": "error",
760761
"@typescript-eslint/prefer-reduce-type-parameter": "error",
761762
"@typescript-eslint/prefer-return-this-type": "error",
@@ -1004,7 +1005,6 @@ exports[`many-extends.spec.ts --type-aware > many-extends.spec.ts--type-aware 1`
10041005
"unsupported rule: @typescript-eslint/consistent-type-assertions",
10051006
"unsupported rule: @typescript-eslint/dot-notation",
10061007
"unsupported rule: @typescript-eslint/prefer-find",
1007-
"unsupported rule: @typescript-eslint/prefer-optional-chain",
10081008
"unsupported rule: @typescript-eslint/prefer-regexp-exec",
10091009
"unsupported rule: @typescript-eslint/prefer-string-starts-ends-with",
10101010
"unsupported rule: react/jsx-uses-react",
@@ -1290,7 +1290,7 @@ exports[`many-extends.spec.ts merge > many-extends.spec.ts--merge 1`] = `
12901290
"unsupported rule: @typescript-eslint/prefer-find",
12911291
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-includes",
12921292
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-nullish-coalescing",
1293-
"unsupported rule: @typescript-eslint/prefer-optional-chain",
1293+
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-optional-chain",
12941294
"unsupported rule: @typescript-eslint/prefer-regexp-exec",
12951295
"unsupported rule: @typescript-eslint/prefer-string-starts-ends-with",
12961296
"unsupported rule: react/jsx-uses-react",

integration_test/__snapshots__/nuxt-auth.spec.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,10 @@ exports[`nuxt-auth > nuxt-auth 1`] = `
255255
],
256256
"rules": {
257257
"@typescript-eslint/explicit-function-return-type": "off",
258+
"vue/no-arrow-functions-in-watch": "error",
258259
"vue/no-deprecated-destroyed-lifecycle": "error",
259260
"vue/no-export-in-script-setup": "error",
261+
"vue/no-lifecycle-after-await": "error",
260262
"vue/no-multiple-slot-args": "warn",
261263
"vue/no-required-prop-with-default": "warn",
262264
"vue/prefer-import-from-vue": "error",
@@ -724,7 +726,6 @@ exports[`nuxt-auth > nuxt-auth 1`] = `
724726
"unsupported rule: vitest/no-only-tests",
725727
"unsupported rule: vue/comment-directive",
726728
"unsupported rule: vue/jsx-uses-vars",
727-
"unsupported rule: vue/no-arrow-functions-in-watch",
728729
"unsupported rule: vue/no-async-in-computed-properties",
729730
"unsupported rule: vue/no-child-content",
730731
"unsupported rule: vue/no-computed-properties-in-data",
@@ -751,7 +752,6 @@ exports[`nuxt-auth > nuxt-auth 1`] = `
751752
"unsupported rule: vue/no-dupe-v-else-if",
752753
"unsupported rule: vue/no-duplicate-attributes",
753754
"unsupported rule: vue/no-expose-after-await",
754-
"unsupported rule: vue/no-lifecycle-after-await",
755755
"unsupported rule: vue/no-mutating-props",
756756
"unsupported rule: vue/no-parsing-error",
757757
"unsupported rule: vue/no-ref-as-operand",
@@ -1139,8 +1139,10 @@ exports[`nuxt-auth --js-plugins > nuxt-auth--js-plugins 1`] = `
11391139
"rules": {
11401140
"@typescript-eslint/explicit-function-return-type": "off",
11411141
"antfu/no-top-level-await": "off",
1142+
"vue/no-arrow-functions-in-watch": "error",
11421143
"vue/no-deprecated-destroyed-lifecycle": "error",
11431144
"vue/no-export-in-script-setup": "error",
1145+
"vue/no-lifecycle-after-await": "error",
11441146
"vue/no-multiple-slot-args": "warn",
11451147
"vue/no-required-prop-with-default": "warn",
11461148
"vue/prefer-import-from-vue": "error",
@@ -2036,7 +2038,6 @@ exports[`nuxt-auth --js-plugins > nuxt-auth--js-plugins 1`] = `
20362038
"unsupported rule: vitest/no-only-tests",
20372039
"unsupported rule: vue/comment-directive",
20382040
"unsupported rule: vue/jsx-uses-vars",
2039-
"unsupported rule: vue/no-arrow-functions-in-watch",
20402041
"unsupported rule: vue/no-async-in-computed-properties",
20412042
"unsupported rule: vue/no-child-content",
20422043
"unsupported rule: vue/no-computed-properties-in-data",
@@ -2063,7 +2064,6 @@ exports[`nuxt-auth --js-plugins > nuxt-auth--js-plugins 1`] = `
20632064
"unsupported rule: vue/no-dupe-v-else-if",
20642065
"unsupported rule: vue/no-duplicate-attributes",
20652066
"unsupported rule: vue/no-expose-after-await",
2066-
"unsupported rule: vue/no-lifecycle-after-await",
20672067
"unsupported rule: vue/no-mutating-props",
20682068
"unsupported rule: vue/no-parsing-error",
20692069
"unsupported rule: vue/no-ref-as-operand",
@@ -2440,8 +2440,10 @@ exports[`nuxt-auth --type-aware > nuxt-auth--type-aware 1`] = `
24402440
],
24412441
"rules": {
24422442
"@typescript-eslint/explicit-function-return-type": "off",
2443+
"vue/no-arrow-functions-in-watch": "error",
24432444
"vue/no-deprecated-destroyed-lifecycle": "error",
24442445
"vue/no-export-in-script-setup": "error",
2446+
"vue/no-lifecycle-after-await": "error",
24452447
"vue/no-multiple-slot-args": "warn",
24462448
"vue/no-required-prop-with-default": "warn",
24472449
"vue/prefer-import-from-vue": "error",
@@ -2909,7 +2911,6 @@ exports[`nuxt-auth --type-aware > nuxt-auth--type-aware 1`] = `
29092911
"unsupported rule: vitest/no-only-tests",
29102912
"unsupported rule: vue/comment-directive",
29112913
"unsupported rule: vue/jsx-uses-vars",
2912-
"unsupported rule: vue/no-arrow-functions-in-watch",
29132914
"unsupported rule: vue/no-async-in-computed-properties",
29142915
"unsupported rule: vue/no-child-content",
29152916
"unsupported rule: vue/no-computed-properties-in-data",
@@ -2936,7 +2937,6 @@ exports[`nuxt-auth --type-aware > nuxt-auth--type-aware 1`] = `
29362937
"unsupported rule: vue/no-dupe-v-else-if",
29372938
"unsupported rule: vue/no-duplicate-attributes",
29382939
"unsupported rule: vue/no-expose-after-await",
2939-
"unsupported rule: vue/no-lifecycle-after-await",
29402940
"unsupported rule: vue/no-mutating-props",
29412941
"unsupported rule: vue/no-parsing-error",
29422942
"unsupported rule: vue/no-ref-as-operand",
@@ -3315,8 +3315,10 @@ exports[`nuxt-auth merge > nuxt-auth--merge 1`] = `
33153315
],
33163316
"rules": {
33173317
"@typescript-eslint/explicit-function-return-type": "off",
3318+
"vue/no-arrow-functions-in-watch": "error",
33183319
"vue/no-deprecated-destroyed-lifecycle": "error",
33193320
"vue/no-export-in-script-setup": "error",
3321+
"vue/no-lifecycle-after-await": "error",
33203322
"vue/no-multiple-slot-args": "warn",
33213323
"vue/no-required-prop-with-default": "warn",
33223324
"vue/prefer-import-from-vue": "error",
@@ -3771,7 +3773,6 @@ exports[`nuxt-auth merge > nuxt-auth--merge 1`] = `
37713773
"unsupported rule: vitest/no-only-tests",
37723774
"unsupported rule: vue/comment-directive",
37733775
"unsupported rule: vue/jsx-uses-vars",
3774-
"unsupported rule: vue/no-arrow-functions-in-watch",
37753776
"unsupported rule: vue/no-async-in-computed-properties",
37763777
"unsupported rule: vue/no-child-content",
37773778
"unsupported rule: vue/no-computed-properties-in-data",
@@ -3798,7 +3799,6 @@ exports[`nuxt-auth merge > nuxt-auth--merge 1`] = `
37983799
"unsupported rule: vue/no-dupe-v-else-if",
37993800
"unsupported rule: vue/no-duplicate-attributes",
38003801
"unsupported rule: vue/no-expose-after-await",
3801-
"unsupported rule: vue/no-lifecycle-after-await",
38023802
"unsupported rule: vue/no-mutating-props",
38033803
"unsupported rule: vue/no-parsing-error",
38043804
"unsupported rule: vue/no-ref-as-operand",

integration_test/__snapshots__/typescript.spec.ts.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ exports[`typescript > typescript 1`] = `
318318
"unsupported rule: no-restricted-syntax",
319319
"unsupported rule: @typescript-eslint/naming-convention",
320320
"unsupported rule: @typescript-eslint/unified-signatures",
321+
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-optional-chain",
321322
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/no-unnecessary-type-assertion",
322323
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/await-thenable",
323324
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/no-array-delete",
@@ -688,6 +689,7 @@ exports[`typescript --js-plugins > typescript--js-plugins 1`] = `
688689
"unsupported rule: no-restricted-syntax",
689690
"unsupported rule: @typescript-eslint/naming-convention",
690691
"unsupported rule: @typescript-eslint/unified-signatures",
692+
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-optional-chain",
691693
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/no-unnecessary-type-assertion",
692694
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/await-thenable",
693695
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/no-array-delete",
@@ -1364,6 +1366,7 @@ exports[`typescript merge > typescript--merge 1`] = `
13641366
"unsupported rule: no-restricted-syntax",
13651367
"unsupported rule: @typescript-eslint/naming-convention",
13661368
"unsupported rule: @typescript-eslint/unified-signatures",
1369+
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-optional-chain",
13671370
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/no-unnecessary-type-assertion",
13681371
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/await-thenable",
13691372
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/no-array-delete",

integration_test/__snapshots__/vscode.spec.ts.snap

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ exports[`vscode > vscode 1`] = `
322322
"unsupported rule: jsdoc/require-jsdoc",
323323
"unsupported rule: jsdoc/check-param-names",
324324
"unsupported rule: comma-dangle",
325-
"unsupported rule: @typescript-eslint/prefer-optional-chain",
325+
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-optional-chain",
326326
"unsupported rule: @typescript-eslint/prefer-readonly",
327327
],
328328
}
@@ -672,7 +672,7 @@ exports[`vscode --js-plugins > vscode--js-plugins 1`] = `
672672
"unsupported rule: jsdoc/require-jsdoc",
673673
"unsupported rule: jsdoc/check-param-names",
674674
"unsupported rule: comma-dangle",
675-
"unsupported rule: @typescript-eslint/prefer-optional-chain",
675+
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-optional-chain",
676676
"unsupported rule: @typescript-eslint/prefer-readonly",
677677
],
678678
}
@@ -952,6 +952,17 @@ exports[`vscode --type-aware > vscode--type-aware 1`] = `
952952
],
953953
},
954954
},
955+
{
956+
"files": [
957+
"extensions/typescript-language-features/**/*.ts",
958+
],
959+
"plugins": [
960+
"typescript",
961+
],
962+
"rules": {
963+
"@typescript-eslint/prefer-optional-chain": "warn",
964+
},
965+
},
955966
],
956967
"plugins": [],
957968
"rules": {
@@ -1000,7 +1011,6 @@ exports[`vscode --type-aware > vscode--type-aware 1`] = `
10001011
"unsupported rule: jsdoc/require-jsdoc",
10011012
"unsupported rule: jsdoc/check-param-names",
10021013
"unsupported rule: comma-dangle",
1003-
"unsupported rule: @typescript-eslint/prefer-optional-chain",
10041014
"unsupported rule: @typescript-eslint/prefer-readonly",
10051015
],
10061016
}
@@ -1329,7 +1339,7 @@ exports[`vscode merge > vscode--merge 1`] = `
13291339
"unsupported rule: jsdoc/require-jsdoc",
13301340
"unsupported rule: jsdoc/check-param-names",
13311341
"unsupported rule: comma-dangle",
1332-
"unsupported rule: @typescript-eslint/prefer-optional-chain",
1342+
"type-aware rule detected, but \`--type-aware\` is not enabled: @typescript-eslint/prefer-optional-chain",
13331343
"unsupported rule: @typescript-eslint/prefer-readonly",
13341344
],
13351345
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@oxlint/migrate",
3-
"version": "1.38.0",
3+
"version": "1.39.0",
44
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
55
"keywords": [
66
"eslint",
@@ -75,7 +75,7 @@
7575
"lint-staged": "^16.1.2",
7676
"next": "^16.0.0",
7777
"oxfmt": "^0.23.0",
78-
"oxlint": "^1.38.0",
78+
"oxlint": "^1.39.0",
7979
"oxlint-tsgolint": "^0.8.3",
8080
"tsdown": "^0.19.0",
8181
"typescript-eslint": "^8.35.0",

pnpm-lock.yaml

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)