style(projects): update prettier config

This commit is contained in:
Soybean
2022-04-01 14:47:57 +08:00
parent ca2dfa6185
commit df56abe18d
128 changed files with 2237 additions and 2037 deletions

View File

@ -4,5 +4,5 @@ import dayjs from 'dayjs';
const PROJECT_BUILD_TIME = JSON.stringify(dayjs().format('YYYY-MM-DD HH:mm:ss'));
export const viteDefine = {
PROJECT_BUILD_TIME,
PROJECT_BUILD_TIME
};

View File

@ -10,6 +10,6 @@ export function resolvePath(rootPath: string, basePath: string) {
return {
root,
src,
src
};
}

View File

@ -15,8 +15,8 @@ export function createViteProxy(viteEnv: ImportMetaEnv) {
[http.proxy]: {
target: http.url,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^${http.proxy}`), ''),
},
rewrite: path => path.replace(new RegExp(`^${http.proxy}`), '')
}
};
return proxy;

View File

@ -8,14 +8,14 @@ export default (srcPath: string) => {
Icons({
compiler: 'vue3',
customCollections: {
custom: FileSystemIconLoader(`${srcPath}/assets/svg`),
custom: FileSystemIconLoader(`${srcPath}/assets/svg`)
},
scale: 1,
defaultClass: 'inline-block',
defaultClass: 'inline-block'
}),
Components({
dts: true,
resolvers: [IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })],
}),
resolvers: [IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })]
})
];
};

View File

@ -10,8 +10,8 @@ export default (config: ConfigEnv): PluginOption[] => {
inject: {
data: {
appName: viteEnv.VITE_APP_NAME,
appTitle: viteEnv.VITE_APP_TITLE,
},
},
appTitle: viteEnv.VITE_APP_TITLE
}
}
});
};

View File

@ -5,5 +5,5 @@ export default viteMockServe({
injectCode: `
import { setupMockServer } from '../mock';
setupMockServer();
`,
`
});

View File

@ -2,5 +2,5 @@ import { visualizer } from 'rollup-plugin-visualizer';
export default visualizer({
gzipSize: true,
brotliSize: true,
brotliSize: true
});