Skip to content

Commit c3d0b7f

Browse files
chore(deps): update typescript-eslint to v7.13.0 (#16376)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker <[email protected]>
1 parent 27c35db commit c3d0b7f

8 files changed

Lines changed: 70 additions & 137 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"@iarna/toml": "2.2.5",
3939
"@prettier/is-es5-identifier-name": "0.2.0",
4040
"@prettier/parse-srcset": "3.1.0",
41-
"@typescript-eslint/typescript-estree": "7.10.0",
42-
"@typescript-eslint/visitor-keys": "7.10.0",
41+
"@typescript-eslint/typescript-estree": "7.13.0",
42+
"@typescript-eslint/visitor-keys": "7.13.0",
4343
"acorn": "8.11.3",
4444
"acorn-jsx": "5.3.2",
4545
"angular-estree-parser": "10.0.3",
@@ -116,7 +116,7 @@
116116
"@types/estree": "1.0.5",
117117
"@types/file-entry-cache": "5.0.4",
118118
"@types/jest": "29.5.12",
119-
"@typescript-eslint/eslint-plugin": "7.10.0",
119+
"@typescript-eslint/eslint-plugin": "7.13.0",
120120
"benchmark": "2.1.4",
121121
"browserslist": "4.23.1",
122122
"browserslist-to-esbuild": "2.1.1",

src/language-js/parse/babel.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ const allowedReasonCodes = new Set([
198198
"OptionalBindingPattern",
199199
"DeclareClassFieldHasInitializer",
200200
"TypeImportCannotSpecifyDefaultAndNamed",
201-
"DeclareFunctionHasImplementation",
202201
"ConstructorClassField",
203202

204203
"VarRedeclaration",

src/language-js/print/block.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ function printBlock(path, options, print) {
5252
parent.type === "ModuleExpression" ||
5353
(parent.type === "CatchClause" && !parentParent.finalizer) ||
5454
parent.type === "TSModuleDeclaration" ||
55-
parent.type === "TSDeclareFunction" ||
5655
node.type === "StaticBlock"
5756
)
5857
) {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`snippet: #0 [babel-ts] format 1`] = `
4+
"An implementation cannot be declared in ambient contexts. (1:1)
5+
> 1 | declare function foo() {}
6+
| ^
7+
Cause: An implementation cannot be declared in ambient contexts. (1:0)"
8+
`;
9+
10+
exports[`snippet: #0 [typescript] format 1`] = `
11+
"An implementation cannot be declared in ambient contexts. (1:1)
12+
> 1 | declare function foo() {}
13+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
14+
Cause: An implementation cannot be declared in ambient contexts."
15+
`;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
runFormatTest(
2+
{
3+
importMeta: import.meta,
4+
snippets: ["declare function foo() {}"],
5+
},
6+
["babel-ts", "typescript"],
7+
);

tests/format/typescript/declare/__snapshots__/format.test.js.snap

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -78,28 +78,6 @@ declare function f([]?);
7878
================================================================================
7979
`;
8080

81-
exports[`declare_function_with_body.ts format 1`] = `
82-
====================================options=====================================
83-
parsers: ["typescript"]
84-
printWidth: 80
85-
| printWidth
86-
=====================================input======================================
87-
// Invalid, but recoverable
88-
declare function foo() {}
89-
declare function bar() {
90-
// comment
91-
}
92-
93-
=====================================output=====================================
94-
// Invalid, but recoverable
95-
declare function foo() {};
96-
declare function bar() {
97-
// comment
98-
};
99-
100-
================================================================================
101-
`;
102-
10381
exports[`declare_interface.ts format 1`] = `
10482
====================================options=====================================
10583
parsers: ["typescript"]

tests/format/typescript/declare/declare_function_with_body.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

yarn.lock

Lines changed: 45 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,15 +1999,15 @@ __metadata:
19991999
languageName: node
20002000
linkType: hard
20012001

2002-
"@typescript-eslint/eslint-plugin@npm:7.10.0":
2003-
version: 7.10.0
2004-
resolution: "@typescript-eslint/eslint-plugin@npm:7.10.0"
2002+
"@typescript-eslint/eslint-plugin@npm:7.13.0":
2003+
version: 7.13.0
2004+
resolution: "@typescript-eslint/eslint-plugin@npm:7.13.0"
20052005
dependencies:
20062006
"@eslint-community/regexpp": "npm:^4.10.0"
2007-
"@typescript-eslint/scope-manager": "npm:7.10.0"
2008-
"@typescript-eslint/type-utils": "npm:7.10.0"
2009-
"@typescript-eslint/utils": "npm:7.10.0"
2010-
"@typescript-eslint/visitor-keys": "npm:7.10.0"
2007+
"@typescript-eslint/scope-manager": "npm:7.13.0"
2008+
"@typescript-eslint/type-utils": "npm:7.13.0"
2009+
"@typescript-eslint/utils": "npm:7.13.0"
2010+
"@typescript-eslint/visitor-keys": "npm:7.13.0"
20112011
graphemer: "npm:^1.4.0"
20122012
ignore: "npm:^5.3.1"
20132013
natural-compare: "npm:^1.4.0"
@@ -2018,86 +2018,50 @@ __metadata:
20182018
peerDependenciesMeta:
20192019
typescript:
20202020
optional: true
2021-
checksum: 10/dfe505cdf718dd29e8637b902e4c544c6b7d246d2051fd1936090423eb3dadfe2bd757de51e565e6fd80e74cf1918e191c26fee6df515100484ec3efd9b8d111
2021+
checksum: 10/93c3a0d8871d8351187503152a6c5199714eb62c96991e0d3e0caaee6881839dee4ad55e5de5d1a4389ae12ed10d3a845603de1f2f581337f782f19113022a65
20222022
languageName: node
20232023
linkType: hard
20242024

2025-
"@typescript-eslint/scope-manager@npm:7.10.0":
2026-
version: 7.10.0
2027-
resolution: "@typescript-eslint/scope-manager@npm:7.10.0"
2025+
"@typescript-eslint/scope-manager@npm:7.13.0":
2026+
version: 7.13.0
2027+
resolution: "@typescript-eslint/scope-manager@npm:7.13.0"
20282028
dependencies:
2029-
"@typescript-eslint/types": "npm:7.10.0"
2030-
"@typescript-eslint/visitor-keys": "npm:7.10.0"
2031-
checksum: 10/838a7a9573577d830b2f65801ce045abe6fad08ac7e04bac4cc9b2e5b7cbac07e645de9c79b9485f4cc361fe25da5319025aa0336fad618023fff62e4e980638
2029+
"@typescript-eslint/types": "npm:7.13.0"
2030+
"@typescript-eslint/visitor-keys": "npm:7.13.0"
2031+
checksum: 10/2b258a06c5e747c80423b07855f052f327a4d5b0a0cf3a46221ef298653139d3b01ac1534fc0db6609fd962ba45ec87a0e12f8d3778183440923bcf4687832a5
20322032
languageName: node
20332033
linkType: hard
20342034

2035-
"@typescript-eslint/scope-manager@npm:7.12.0":
2036-
version: 7.12.0
2037-
resolution: "@typescript-eslint/scope-manager@npm:7.12.0"
2035+
"@typescript-eslint/type-utils@npm:7.13.0":
2036+
version: 7.13.0
2037+
resolution: "@typescript-eslint/type-utils@npm:7.13.0"
20382038
dependencies:
2039-
"@typescript-eslint/types": "npm:7.12.0"
2040-
"@typescript-eslint/visitor-keys": "npm:7.12.0"
2041-
checksum: 10/49a1fa4c15a161258963c4ffe37d89a212138d1c09e39a73064cd3a962823b98e362546de7228698877bc7e7f515252f439c140245f9689ff59efd7b35be58a4
2042-
languageName: node
2043-
linkType: hard
2044-
2045-
"@typescript-eslint/type-utils@npm:7.10.0":
2046-
version: 7.10.0
2047-
resolution: "@typescript-eslint/type-utils@npm:7.10.0"
2048-
dependencies:
2049-
"@typescript-eslint/typescript-estree": "npm:7.10.0"
2050-
"@typescript-eslint/utils": "npm:7.10.0"
2039+
"@typescript-eslint/typescript-estree": "npm:7.13.0"
2040+
"@typescript-eslint/utils": "npm:7.13.0"
20512041
debug: "npm:^4.3.4"
20522042
ts-api-utils: "npm:^1.3.0"
20532043
peerDependencies:
20542044
eslint: ^8.56.0
20552045
peerDependenciesMeta:
20562046
typescript:
20572047
optional: true
2058-
checksum: 10/e62db9ffbfbccce60258108f7ed025005e04df18da897ff1b30049e3c10a47150e94c2fb5ac0ab9711ebb60517521213dcccbea6d08125107a87a67088a79042
2059-
languageName: node
2060-
linkType: hard
2061-
2062-
"@typescript-eslint/types@npm:7.10.0":
2063-
version: 7.10.0
2064-
resolution: "@typescript-eslint/types@npm:7.10.0"
2065-
checksum: 10/76075a7b87ddfff8e7e4aebf3d225e67bf79ead12a7709999d4d5c31611d9c0813ca69a9298f320efb018fe493ce3763c964a0e670a4c953d8eff000f10672c0
2066-
languageName: node
2067-
linkType: hard
2068-
2069-
"@typescript-eslint/types@npm:7.12.0":
2070-
version: 7.12.0
2071-
resolution: "@typescript-eslint/types@npm:7.12.0"
2072-
checksum: 10/17b57ccd26278312299b27f587d7e9b34076ff37780b3973f848e4ac7bdf80d1bee7356082b54e900e0d77be8a0dda1feef1feb84843b9ec253855200cd93f36
2048+
checksum: 10/f51ccb3c59963db82a504b02c8d15bc518137c176b8d39891f7bcb7b4b02ca0fa918a3754781f198f592f1047dc24c49086430bbef857d877d085e14d33f7a6c
20732049
languageName: node
20742050
linkType: hard
20752051

2076-
"@typescript-eslint/typescript-estree@npm:7.10.0":
2077-
version: 7.10.0
2078-
resolution: "@typescript-eslint/typescript-estree@npm:7.10.0"
2079-
dependencies:
2080-
"@typescript-eslint/types": "npm:7.10.0"
2081-
"@typescript-eslint/visitor-keys": "npm:7.10.0"
2082-
debug: "npm:^4.3.4"
2083-
globby: "npm:^11.1.0"
2084-
is-glob: "npm:^4.0.3"
2085-
minimatch: "npm:^9.0.4"
2086-
semver: "npm:^7.6.0"
2087-
ts-api-utils: "npm:^1.3.0"
2088-
peerDependenciesMeta:
2089-
typescript:
2090-
optional: true
2091-
checksum: 10/d11d0c45749c9bd4a187b6dfdf5600e36ba8c87667cd2020d9158667c47c32ec0bcb1ef3b7eee5577b667def5f7f33d8131092a0f221b3d3e8105078800f923f
2052+
"@typescript-eslint/types@npm:7.13.0":
2053+
version: 7.13.0
2054+
resolution: "@typescript-eslint/types@npm:7.13.0"
2055+
checksum: 10/5adc39c569217ed7d09853385313f1fcf2c05385e5e0144740238e346afbc0dec576c1eb46f779368736b080e6f9f368483fff3378b0bf7e6b275f27a904f04d
20922056
languageName: node
20932057
linkType: hard
20942058

2095-
"@typescript-eslint/typescript-estree@npm:7.12.0":
2096-
version: 7.12.0
2097-
resolution: "@typescript-eslint/typescript-estree@npm:7.12.0"
2059+
"@typescript-eslint/typescript-estree@npm:7.13.0":
2060+
version: 7.13.0
2061+
resolution: "@typescript-eslint/typescript-estree@npm:7.13.0"
20982062
dependencies:
2099-
"@typescript-eslint/types": "npm:7.12.0"
2100-
"@typescript-eslint/visitor-keys": "npm:7.12.0"
2063+
"@typescript-eslint/types": "npm:7.13.0"
2064+
"@typescript-eslint/visitor-keys": "npm:7.13.0"
21012065
debug: "npm:^4.3.4"
21022066
globby: "npm:^11.1.0"
21032067
is-glob: "npm:^4.0.3"
@@ -2107,55 +2071,31 @@ __metadata:
21072071
peerDependenciesMeta:
21082072
typescript:
21092073
optional: true
2110-
checksum: 10/45e7402e2e32782a96dbca671b4ad731b643e47c172d735e749930d1560071a1a1e2a8765396443d09bff83c69dad2fff07dc30a2ed212bff492e20aa6b2b790
2111-
languageName: node
2112-
linkType: hard
2113-
2114-
"@typescript-eslint/utils@npm:7.10.0":
2115-
version: 7.10.0
2116-
resolution: "@typescript-eslint/utils@npm:7.10.0"
2117-
dependencies:
2118-
"@eslint-community/eslint-utils": "npm:^4.4.0"
2119-
"@typescript-eslint/scope-manager": "npm:7.10.0"
2120-
"@typescript-eslint/types": "npm:7.10.0"
2121-
"@typescript-eslint/typescript-estree": "npm:7.10.0"
2122-
peerDependencies:
2123-
eslint: ^8.56.0
2124-
checksum: 10/62327b585295f9c3aa2508aefac639d562b6f7f270a229aa3a2af8dbd055f4a4d230a8facae75a8a53bb8222b0041162072d259add56b541f8bdfda8da36ea5f
2074+
checksum: 10/d4cc68e8aa9902c5efa820582b05bfb6c1567e21e7743250778613a045f0b6bb05128f7cfc090368ab808ad91be6193b678569ca803f917b2958c3752bc4810b
21252075
languageName: node
21262076
linkType: hard
21272077

2128-
"@typescript-eslint/utils@npm:^6.0.0 || ^7.0.0":
2129-
version: 7.12.0
2130-
resolution: "@typescript-eslint/utils@npm:7.12.0"
2078+
"@typescript-eslint/utils@npm:7.13.0, @typescript-eslint/utils@npm:^6.0.0 || ^7.0.0":
2079+
version: 7.13.0
2080+
resolution: "@typescript-eslint/utils@npm:7.13.0"
21312081
dependencies:
21322082
"@eslint-community/eslint-utils": "npm:^4.4.0"
2133-
"@typescript-eslint/scope-manager": "npm:7.12.0"
2134-
"@typescript-eslint/types": "npm:7.12.0"
2135-
"@typescript-eslint/typescript-estree": "npm:7.12.0"
2083+
"@typescript-eslint/scope-manager": "npm:7.13.0"
2084+
"@typescript-eslint/types": "npm:7.13.0"
2085+
"@typescript-eslint/typescript-estree": "npm:7.13.0"
21362086
peerDependencies:
21372087
eslint: ^8.56.0
2138-
checksum: 10/b66725cef2dcc4975714ea7528fa000cebd4e0b55bb6c43d7efe9ce21a6c7af5f8b2c49f1be3a5118c26666d4b0228470105741e78430e463b72f91fa62e0adf
2139-
languageName: node
2140-
linkType: hard
2141-
2142-
"@typescript-eslint/visitor-keys@npm:7.10.0":
2143-
version: 7.10.0
2144-
resolution: "@typescript-eslint/visitor-keys@npm:7.10.0"
2145-
dependencies:
2146-
"@typescript-eslint/types": "npm:7.10.0"
2147-
eslint-visitor-keys: "npm:^3.4.3"
2148-
checksum: 10/44b555a075bdff38e3e13c454ceaac50aa2546635e81f907d1ea84822c8887487d1d6bb4ff690f627da9585dc19ad07e228847c162c30bb06c46fb119899d8cc
2088+
checksum: 10/c87bbb90c958ed4617f88767890af2a797adcf28060e85809a9cad2ce4ed55b5db685d3a8d062dbbf89d2a49e85759e2a9deb92ee1946a95d5de6cbd14ea42f4
21492089
languageName: node
21502090
linkType: hard
21512091

2152-
"@typescript-eslint/visitor-keys@npm:7.12.0":
2153-
version: 7.12.0
2154-
resolution: "@typescript-eslint/visitor-keys@npm:7.12.0"
2092+
"@typescript-eslint/visitor-keys@npm:7.13.0":
2093+
version: 7.13.0
2094+
resolution: "@typescript-eslint/visitor-keys@npm:7.13.0"
21552095
dependencies:
2156-
"@typescript-eslint/types": "npm:7.12.0"
2096+
"@typescript-eslint/types": "npm:7.13.0"
21572097
eslint-visitor-keys: "npm:^3.4.3"
2158-
checksum: 10/5c03bbb68f6eb775005c83042da99de87513cdf9b5549c2ac30caf2c74dc9888cebec57d9eeb0dead8f63a57771288f59605c9a4d8aeec6b87b5390ac723cbd4
2098+
checksum: 10/5568dd435f22337c034da8c2dacd5be23b966c5978d25d96fca1358c59289861dfc4c39f2943c7790e947f75843d60035ad56c1f2c106f0e7d9ecf1ff6646065
21592099
languageName: node
21602100
linkType: hard
21612101

@@ -7334,9 +7274,9 @@ __metadata:
73347274
"@types/estree": "npm:1.0.5"
73357275
"@types/file-entry-cache": "npm:5.0.4"
73367276
"@types/jest": "npm:29.5.12"
7337-
"@typescript-eslint/eslint-plugin": "npm:7.10.0"
7338-
"@typescript-eslint/typescript-estree": "npm:7.10.0"
7339-
"@typescript-eslint/visitor-keys": "npm:7.10.0"
7277+
"@typescript-eslint/eslint-plugin": "npm:7.13.0"
7278+
"@typescript-eslint/typescript-estree": "npm:7.13.0"
7279+
"@typescript-eslint/visitor-keys": "npm:7.13.0"
73407280
acorn: "npm:8.11.3"
73417281
acorn-jsx: "npm:5.3.2"
73427282
angular-estree-parser: "npm:10.0.3"

0 commit comments

Comments
 (0)