chore(deps): update typescript-eslint to v8.4.0 (#16639)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker authored and GitHub committed 2024-09-08 19:24:22 +08:00
1 parent fa0d413057
commit a722562dfe
5 files changed
+81 -97

No files matched your search

+9 -4
View File
@@ -131,10 +131,15 @@ const pluginFiles = [
"@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js",
),
process: (text) =>
text.replace(
'require("path")',
'{extname: file => "." + file.split(".").pop()}',
),
text
.replace(
'require("path")',
'{extname: file => "." + file.split(".").pop()}',
)
.replace(
'require("node:path")',
'{extname: file => "." + file.split(".").pop()}',
),
},
{
module: getPackageFile(
+14 -4
View File
@@ -45,10 +45,20 @@ function esmifyTypescriptEslint(text) {
);
text = text.replaceAll('"use strict";', "");
text = text.replaceAll(
'Object.defineProperty(exports, "__esModule", { value: true });',
"",
);
text = text
.replaceAll(
'Object.defineProperty(exports, "__esModule", { value: true });',
"",
)
.replaceAll(
outdent`
Object.defineProperty(exports, "__esModule", {
value: true
});
`,
"",
);
text = text.replaceAll(/(?<=\n)(?:exports\.\w+ = )+void 0;/gu, "");
text = text.replaceAll(
/(?<=\n)exports\.(?<specifier>\w+) = (?<variable>\w+);/gu,
+7 -1
View File
@@ -21,7 +21,13 @@ function transform(original, file) {
path.join(PROJECT_ROOT, "node_modules/angular-estree-parser/"),
) ||
file.startsWith(path.join(PROJECT_ROOT, "node_modules/jest-docblock/")) ||
file.startsWith(path.join(PROJECT_ROOT, "node_modules/espree/"))
file.startsWith(path.join(PROJECT_ROOT, "node_modules/espree/")) ||
file.startsWith(
path.join(
PROJECT_ROOT,
"node_modules/@typescript-eslint/typescript-estree/",
),
)
)
) {
return original;