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:
1 parent
fa0d413057
commit
a722562dfe
5 files changed
+81
-97
No files matched your search
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user