Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
30
Frontend-Learner/node_modules/vite-plugin-checker/dist/checkers/oxlint/main.js
generated
vendored
Normal file
30
Frontend-Learner/node_modules/vite-plugin-checker/dist/checkers/oxlint/main.js
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { fileURLToPath } from "node:url";
|
||||
import { Checker } from "../../Checker.js";
|
||||
import parseArgsStringToArgv from "../stylelint/argv.js";
|
||||
import { createDiagnostic } from "./diagnostics.js";
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
class OxlintChecker extends Checker {
|
||||
constructor() {
|
||||
super({
|
||||
name: "oxlint",
|
||||
absFilePath: __filename,
|
||||
build: {
|
||||
buildBin: ({ oxlint: oxlint2 }) => {
|
||||
const commandStr = typeof oxlint2 === "boolean" ? "oxlint" : (oxlint2 == null ? void 0 : oxlint2.lintCommand) ?? "oxlint";
|
||||
const command = parseArgsStringToArgv(commandStr);
|
||||
return [command[0], command.slice(1)];
|
||||
}
|
||||
},
|
||||
createDiagnostic
|
||||
});
|
||||
}
|
||||
}
|
||||
const oxlint = new OxlintChecker();
|
||||
oxlint.prepare();
|
||||
oxlint.initWorkerThread();
|
||||
const createServeAndBuild = oxlint.initMainThread();
|
||||
export {
|
||||
OxlintChecker,
|
||||
createServeAndBuild
|
||||
};
|
||||
//# sourceMappingURL=main.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue