mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-04-23 00:38:34 +08:00
chore: fix lint issues
This commit is contained in:
@@ -49,10 +49,8 @@ async function viteExtraAppConfigPlugin({
|
||||
|
||||
console.log(colors.cyan(`✨configuration file is build successfully!`));
|
||||
} catch (error) {
|
||||
// oxlint-disable-next-line no-console
|
||||
console.log(
|
||||
colors.red(
|
||||
// oxlint-disable-next-line typescript/restrict-template-expressions
|
||||
`configuration file configuration file failed to package:\n${error}`,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -68,7 +68,6 @@ async function viteImportMapPlugin(
|
||||
});
|
||||
|
||||
if (options?.debug) {
|
||||
// oxlint-disable-next-line typescript/no-floating-promises
|
||||
(async () => {
|
||||
for await (const { message, type } of generator.logStream()) {
|
||||
console.log(`${type}: ${message}`);
|
||||
@@ -139,7 +138,6 @@ async function viteImportMapPlugin(
|
||||
buildEnd() {
|
||||
// 未生成importmap时,抛出错误,防止被turbo缓存
|
||||
if (!installed && !isSSR) {
|
||||
// oxlint-disable-next-line no-unused-expressions
|
||||
installError && console.error(installError);
|
||||
throw new Error('Importmap installation failed.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user