Skip to content

Commit f902742

Browse files
authored
chore: Update TS 5.8 (#17185)
update
1 parent 030e3ce commit f902742

5 files changed

Lines changed: 117 additions & 113 deletions

File tree

.yarnrc.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ nmMode: hardlinks-local
2222

2323
nodeLinker: node-modules
2424

25-
packageExtensions:
26-
psl@*:
27-
dependencies:
28-
punycode: ^2.3.0
29-
3025
plugins:
3126
- checksum: 0f9f9afc8fdd7275b8c61b00ae8e74f7c23ac91533bacd242cc9478f6d20792335145d9b68abe8d01b6e50844bbb6a777097cc85973990fe4badf2c9a2b6ae11
3227
path: .yarn/plugins/@yarnpkg/plugin-babel-release-tool.cjs

eslint/babel-eslint-parser/src/types.d.cts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ declare class ESLintScope {
128128
isUsedName(name: any): boolean;
129129
}
130130

131+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
131132
declare class Referencer extends Visitor {
132133
readonly scopeManager: ScopeManager & {
133134
__currentScope: ESLintScope;

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@babel/preset-typescript": "8.0.0-alpha.16",
3838
"@babel/runtime": "8.0.0-alpha.16",
3939
"@cspotcode/source-map-support": "^0.8.1",
40-
"@eslint/js": "^9.12.0",
40+
"@eslint/js": "^9.22.0",
4141
"@rollup/plugin-babel": "^6.0.4",
4242
"@rollup/plugin-commonjs": "^25.0.7",
4343
"@rollup/plugin-json": "^6.1.0",
@@ -51,7 +51,7 @@
5151
"c8": "^10.0.0",
5252
"charcodes": "^0.2.0",
5353
"core-js": "^3.36.1",
54-
"eslint": "^9.21.0",
54+
"eslint": "^9.22.0",
5555
"eslint-config-prettier": "^9.1.0",
5656
"eslint-formatter-codeframe": "^7.32.1",
5757
"eslint-import-resolver-node": "^0.3.9",
@@ -74,16 +74,16 @@
7474
"lint-staged": "^15.2.7",
7575
"mergeiterator": "^1.4.4",
7676
"picocolors": "^1.0.0",
77-
"prettier": "^3.4.2",
77+
"prettier": "^3.5.2",
7878
"rollup": "^4.18.0",
7979
"rollup-plugin-dts": "patch:rollup-plugin-dts@npm%3A6.1.0#~/.yarn/patches/rollup-plugin-dts-npm-6.1.0-6d41e665a7.patch",
8080
"rollup-plugin-dts-5": "npm:rollup-plugin-dts@^5.3.1",
8181
"rollup-plugin-polyfill-node": "^0.13.0",
8282
"semver": "^6.3.1",
8383
"shelljs": "^0.8.5",
8484
"test262-stream": "^1.4.0",
85-
"typescript": "5.7.3",
86-
"typescript-eslint": "8.19.1"
85+
"typescript": "5.8.2",
86+
"typescript-eslint": "8.26.1"
8787
},
8888
"workspaces": [
8989
"codemods/*",

packages/babel-traverse/src/path/lib/hoister.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ export default class PathHoister<T extends t.Node = t.Node> {
262262

263263
this.path.replaceWith(cloneNode(uid));
264264

265-
// @ts-expect-error TS cannot refine the type of `attached`
266265
// TODO: Should we use `attached.isVariableDeclaration()`?
267266
return attachTo.isVariableDeclarator()
268-
? attached.get("init")
267+
? // @ts-expect-error TS cannot refine the type of `attached`
268+
attached.get("init")
269269
: attached.get("declarations.0.init");
270270
}
271271
}

0 commit comments

Comments
 (0)