chore: bump prettier v3 and format all code (#12111)

* chore: bump prettier v3 and format all code

* chore: mjs config

* chore: revert

* chore: revert

* chore: update lock
This commit is contained in:
neverland
2023-07-22 14:14:14 +08:00
committed by GitHub
parent b601ca1e0b
commit 3dcc92a5c0
209 changed files with 565 additions and 543 deletions
+1 -1
View File
@@ -39,6 +39,6 @@ const IMPORT_STYLE_RE = /import\s+?(?:(?:".*?")|(?:'.*?'))[\s]*?(?:;|$|)/g;
// "import 'a.less';" => "import 'a.css';"
export function replaceCSSImportExt(code: string) {
return code.replace(IMPORT_STYLE_RE, (str) =>
str.replace(`.${CSS_LANG}`, '.css')
str.replace(`.${CSS_LANG}`, '.css'),
);
}
+4 -4
View File
@@ -42,7 +42,7 @@ export function getComponents() {
}
return false;
})
}),
);
}
@@ -65,7 +65,7 @@ export function camelize(str: string): string {
export function pascalize(str: string): string {
return camelize(str).replace(
pascalizeRE,
(_, c1, c2) => c1.toUpperCase() + c2
(_, c1, c2) => c1.toUpperCase() + c2,
);
}
@@ -116,7 +116,7 @@ export function smartOutputFile(filePath: string, content: string) {
export async function mergeCustomViteConfig(
config: InlineConfig,
mode: 'production' | 'development'
mode: 'production' | 'development',
): Promise<InlineConfig> {
const vantConfig = getVantConfig();
const configureVite = vantConfig.build?.configureVite;
@@ -127,7 +127,7 @@ export async function mergeCustomViteConfig(
command: mode === 'development' ? 'serve' : 'build',
},
undefined,
process.cwd()
process.cwd(),
);
if (configureVite) {