feat: tsgolint
parent
68cde54bad
commit
395babc1f5
|
|
@ -6,5 +6,5 @@
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"noEmit": false
|
"noEmit": false
|
||||||
},
|
},
|
||||||
"include": ["vite.config.mts"]
|
"include": ["vite.config.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"noEmit": false
|
"noEmit": false
|
||||||
},
|
},
|
||||||
"include": ["vite.config.mts"]
|
"include": ["vite.config.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"noEmit": false
|
"noEmit": false
|
||||||
},
|
},
|
||||||
"include": ["vite.config.mts"]
|
"include": ["vite.config.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"noEmit": false
|
"noEmit": false
|
||||||
},
|
},
|
||||||
"include": ["vite.config.mts"]
|
"include": ["vite.config.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"noEmit": false
|
"noEmit": false
|
||||||
},
|
},
|
||||||
"include": ["vite.config.mts"]
|
"include": ["vite.config.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,10 @@ async function viteExtraAppConfigPlugin({
|
||||||
|
|
||||||
console.log(colors.cyan(`✨configuration file is build successfully!`));
|
console.log(colors.cyan(`✨configuration file is build successfully!`));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
// oxlint-disable-next-line no-console
|
||||||
console.log(
|
console.log(
|
||||||
colors.red(
|
colors.red(
|
||||||
|
// oxlint-disable-next-line typescript/restrict-template-expressions
|
||||||
`configuration file configuration file failed to package:\n${error}`,
|
`configuration file configuration file failed to package:\n${error}`,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ async function viteImportMapPlugin(
|
||||||
});
|
});
|
||||||
|
|
||||||
if (options?.debug) {
|
if (options?.debug) {
|
||||||
|
// oxlint-disable-next-line typescript/no-floating-promises
|
||||||
(async () => {
|
(async () => {
|
||||||
for await (const { message, type } of generator.logStream()) {
|
for await (const { message, type } of generator.logStream()) {
|
||||||
console.log(`${type}: ${message}`);
|
console.log(`${type}: ${message}`);
|
||||||
|
|
@ -138,6 +139,7 @@ async function viteImportMapPlugin(
|
||||||
buildEnd() {
|
buildEnd() {
|
||||||
// 未生成importmap时,抛出错误,防止被turbo缓存
|
// 未生成importmap时,抛出错误,防止被turbo缓存
|
||||||
if (!installed && !isSSR) {
|
if (!installed && !isSSR) {
|
||||||
|
// oxlint-disable-next-line no-unused-expressions
|
||||||
installError && console.error(installError);
|
installError && console.error(installError);
|
||||||
throw new Error('Importmap installation failed.');
|
throw new Error('Importmap installation failed.');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@
|
||||||
"vue-tippy": "catalog:"
|
"vue-tippy": "catalog:"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/json-bigint": "catalog:",
|
||||||
"@types/qrcode": "catalog:"
|
"@types/qrcode": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"noEmit": false
|
"noEmit": false
|
||||||
},
|
},
|
||||||
"include": ["vite.config.mts"]
|
"include": ["vite.config.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ async function runLint({ format }: LintCommandOptions) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
execaCommand(`oxfmt --check .`, {
|
execaCommand(`oxfmt .`, {
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
}),
|
}),
|
||||||
execaCommand(`oxlint . --fix`, {
|
execaCommand(`oxlint . --fix`, {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue