Update ESLint related dependencies (major) (#18907)
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
a96a034e80
commit
1a4f6fe1fd
10 files changed
+101
-119
No files matched your search
@@ -8,7 +8,7 @@ import { modifyTypescriptModule } from "./build/hacks/modify-typescript-module.j
|
||||
import UNUSED_SPECIFIERS from "./build/hacks/typescript-unused-specifiers.js";
|
||||
|
||||
async function getRemovedSpecifiers(code, exports) {
|
||||
let errors = [];
|
||||
let errors;
|
||||
try {
|
||||
await esbuild.transformSync(code, { loader: "js" });
|
||||
return;
|
||||
|
||||
@@ -62,7 +62,9 @@ async function runYarn(args, options) {
|
||||
try {
|
||||
return await spawn("yarn", [...args], options);
|
||||
} catch (error) {
|
||||
throw new Error(`\`yarn ${args.join(" ")}\` failed\n${error.stdout}`);
|
||||
throw new Error(`\`yarn ${args.join(" ")}\` failed\n${error.stdout}`, {
|
||||
cause: error,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ function run(argv) {
|
||||
}
|
||||
|
||||
const syncDir = argv[0];
|
||||
let skipped = [];
|
||||
let skipped;
|
||||
|
||||
try {
|
||||
skipped = syncTests(syncDir);
|
||||
|
||||
Reference in new issue
Block a user