build(projects): update tsconfig、eslintrc

This commit is contained in:
Soybean
2022-03-12 16:21:40 +08:00
parent 4093dcd6dc
commit 75de2b0604
131 changed files with 1174 additions and 1140 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 define = {
PROJECT_BUILD_TIME
PROJECT_BUILD_TIME,
};

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

@ -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: false,
resolvers: [IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })]
})
resolvers: [IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })],
}),
];
};

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,
});