style(projects): format code

This commit is contained in:
Soybean
2023-12-14 21:45:29 +08:00
parent a176dc443e
commit a748166399
127 changed files with 2472 additions and 3006 deletions

View File

@ -1,3 +1,4 @@
import process from 'node:process';
import path from 'node:path';
import unocss from '@unocss/vite';
import presetIcons from '@unocss/preset-icons';
@ -8,9 +9,7 @@ export function setupUnocss(viteEnv: Env.ImportMeta) {
const localIconPath = path.join(process.cwd(), 'src/assets/svg-icon');
/**
* the name of the local icon collection
*/
/** The name of the local icon collection */
const collectionName = VITE_ICON_LOCAL_PREFIX.replace(`${VITE_ICON_PREFIX}-`, '');
return unocss({

View File

@ -1,3 +1,4 @@
import process from 'node:process';
import path from 'node:path';
import type { PluginOption } from 'vite';
import Icons from 'unplugin-icons/vite';
@ -12,9 +13,7 @@ export function setupUnplugin(viteEnv: Env.ImportMeta) {
const localIconPath = path.join(process.cwd(), 'src/assets/svg-icon');
/**
* the name of the local icon collection
*/
/** The name of the local icon collection */
const collectionName = VITE_ICON_LOCAL_PREFIX.replace(`${VITE_ICON_PREFIX}-`, '');
const plugins: PluginOption[] = [