mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 02:39:26 +02:00
chore: update dependencies
notably, eslint v9 requires big changes to the configuration. because eslint-plugin-import doesn't support eslint v9, it's disabled by now.
This commit is contained in:
parent
5c40159bf5
commit
70a82e2af3
63 changed files with 763 additions and 735 deletions
27
toolchain/eslint-config/run-eslint.js
Normal file
27
toolchain/eslint-config/run-eslint.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
import { spawn } from "node:child_process";
|
||||
import { once } from "node:events";
|
||||
import { resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __dirname = resolve(fileURLToPath(import.meta.url), "..");
|
||||
|
||||
let eslint = resolve(__dirname, "node_modules", ".bin", "eslint");
|
||||
if (process.platform === "win32") {
|
||||
eslint += ".cmd";
|
||||
}
|
||||
|
||||
const child = spawn(
|
||||
eslint,
|
||||
["--config", resolve(__dirname, "eslint.config.js"), "--fix", "."],
|
||||
{
|
||||
stdio: "inherit",
|
||||
},
|
||||
);
|
||||
|
||||
await once(child, "exit");
|
||||
|
||||
if (child.exitCode) {
|
||||
process.exit(child.exitCode);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue