chore: prettier all codes (#10240)

This commit is contained in:
neverland
2022-01-25 14:42:35 +08:00
committed by GitHub
parent 8bc55c8b32
commit 969f0a7b41
12 changed files with 34 additions and 35 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export type VueAttribute = {
name: string;
default: string;
description: string;
options: string[]
options: string[];
value: {
kind: 'expression';
type: string;
+3 -3
View File
@@ -21,8 +21,8 @@ export function normalizePath(path: string): string {
return path.replace(/\\/g, '/');
}
// `default` `primary` -> ['default', 'primary']
// `default` `primary` -> ['default', 'primary']
export function formatOptions(options?: string) {
if (!options) return []
return options.replace(/`/g, '').split(' ')
if (!options) return [];
return options.replace(/`/g, '').split(' ');
}