diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json index 7803db6..8765f6a 100644 --- a/.eslintrc-auto-import.json +++ b/.eslintrc-auto-import.json @@ -1,58 +1,58 @@ { - "globals": { - "EffectScope": true, - "computed": true, - "createApp": true, - "customRef": true, - "defineAsyncComponent": true, - "defineComponent": true, - "effectScope": true, - "getCurrentInstance": true, - "getCurrentScope": true, - "h": true, - "inject": true, - "isProxy": true, - "isReactive": true, - "isReadonly": true, - "isRef": true, - "markRaw": true, - "nextTick": true, - "onActivated": true, - "onBeforeMount": true, - "onBeforeUnmount": true, - "onBeforeUpdate": true, - "onDeactivated": true, - "onErrorCaptured": true, - "onMounted": true, - "onRenderTracked": true, - "onRenderTriggered": true, - "onScopeDispose": true, - "onServerPrefetch": true, - "onUnmounted": true, - "onUpdated": true, - "provide": true, - "reactive": true, - "readonly": true, - "ref": true, - "resolveComponent": true, - "shallowReactive": true, - "shallowReadonly": true, - "shallowRef": true, - "toRaw": true, - "toRef": true, - "toRefs": true, - "triggerRef": true, - "unref": true, - "useAttrs": true, - "useCssModule": true, - "useCssVars": true, - "useSlots": true, - "watch": true, - "watchEffect": true, - "watchPostEffect": true, - "watchSyncEffect": true, - "ElMessageBox": true, - "ElMessage": true, - "ElNotification": true - } -} \ No newline at end of file + "globals": { + "EffectScope": true, + "computed": true, + "createApp": true, + "customRef": true, + "defineAsyncComponent": true, + "defineComponent": true, + "effectScope": true, + "getCurrentInstance": true, + "getCurrentScope": true, + "h": true, + "inject": true, + "isProxy": true, + "isReactive": true, + "isReadonly": true, + "isRef": true, + "markRaw": true, + "nextTick": true, + "onActivated": true, + "onBeforeMount": true, + "onBeforeUnmount": true, + "onBeforeUpdate": true, + "onDeactivated": true, + "onErrorCaptured": true, + "onMounted": true, + "onRenderTracked": true, + "onRenderTriggered": true, + "onScopeDispose": true, + "onServerPrefetch": true, + "onUnmounted": true, + "onUpdated": true, + "provide": true, + "reactive": true, + "readonly": true, + "ref": true, + "resolveComponent": true, + "shallowReactive": true, + "shallowReadonly": true, + "shallowRef": true, + "toRaw": true, + "toRef": true, + "toRefs": true, + "triggerRef": true, + "unref": true, + "useAttrs": true, + "useCssModule": true, + "useCssVars": true, + "useSlots": true, + "watch": true, + "watchEffect": true, + "watchPostEffect": true, + "watchSyncEffect": true, + "ElMessageBox": true, + "ElMessage": true, + "ElNotification": true + } +} diff --git a/.eslintrc.js b/.eslintrc.js index 6dc7f56..22baa12 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,26 +1,18 @@ module.exports = { - "env": { - "browser": true, - "es2021": true - }, - "parser": "vue-eslint-parser", - "extends": [ - "eslint:recommended", - "plugin:vue/vue3-essential", - "plugin:@typescript-eslint/recommended", - './.eslintrc-auto-import.json' - ], - "parserOptions": { - "ecmaVersion": "latest", - "parser": "@typescript-eslint/parser", - "sourceType": "module" - }, - "plugins": [ - "vue", - "@typescript-eslint" - ], - "rules": { - '@typescript-eslint/no-explicit-any': 0, - 'vue/multi-word-component-names': 0 - } + env: { + browser: true, + es2021: true + }, + parser: 'vue-eslint-parser', + extends: ['eslint:recommended', 'plugin:vue/vue3-essential', 'plugin:@typescript-eslint/recommended', './.eslintrc-auto-import.json'], + parserOptions: { + ecmaVersion: 'latest', + parser: '@typescript-eslint/parser', + sourceType: 'module' + }, + plugins: ['vue', '@typescript-eslint'], + rules: { + '@typescript-eslint/no-explicit-any': 0, + 'vue/multi-word-component-names': 0 + } } diff --git a/build/css.ts b/build/css.ts index eb7409b..e13cd8f 100644 --- a/build/css.ts +++ b/build/css.ts @@ -1,7 +1,7 @@ export default { preprocessorOptions: { scss: { - additionalData: '@use "@/css/element-var.scss" as *;$--color-primary: #1E54D5;$namesapce:czhj;', + additionalData: '@use "@/css/element-var.scss" as *;$--color-primary: #1E54D5;$namesapce:czhj;' }, less: { javascriptEnabled: true, @@ -9,7 +9,7 @@ export default { 'primary-color': '#1E54D5' }, charset: false - }, + } // postcss: { // plugins: [ // { @@ -25,4 +25,4 @@ export default { // ] // } } -} \ No newline at end of file +} diff --git a/build/plugin.ts b/build/plugin.ts index 049390a..2bbc582 100644 --- a/build/plugin.ts +++ b/build/plugin.ts @@ -3,7 +3,7 @@ * @Date: 2022-11-10 10:46:38 * @LastEditTime: 2022-11-10 12:10:52 * @LastEditors: Haijun Zhang - * @Description: + * @Description: * @FilePath: \main-web-qiankun\build\plugin.ts */ import vue from '@vitejs/plugin-vue' @@ -29,7 +29,7 @@ export default [ ElementPlusResolver(), // 自动导入图标组件 IconsResolver({ - prefix: 'Icon', + prefix: 'Icon' }) ], eslintrc: { @@ -37,9 +37,9 @@ export default [ enabled: false, // 生成文件地址和名称 filepath: './.eslintrc-auto-import.json', - globalsPropValue: true, + globalsPropValue: true }, - dts: path.resolve(pathSrc, 'auto-imports.d.ts'), + dts: path.resolve(pathSrc, 'auto-imports.d.ts') }), createSvgIconsPlugin({ // Specify the icon folder to be cached @@ -55,23 +55,23 @@ export default [ }), // 自动注册图标组件 IconsResolver({ - prefix: 'icon', + prefix: 'icon' // enabledCollections: ['ep'], }) ], - dts: path.resolve(pathSrc, 'components.d.ts'), + dts: path.resolve(pathSrc, 'components.d.ts') }), Icons({ - autoInstall: true, + autoInstall: true }), createStyleImportPlugin({ libs: [ - // + // { libraryName: 'element-plus', esModule: true, - resolveStyle: (name) => { - const component = name.replace('el-', ''); + resolveStyle: name => { + const component = name.replace('el-', '') return `element-plus/theme-chalk/src/${component}.scss` } } @@ -79,6 +79,6 @@ export default [ }), Unocss(), eslintPlugin({ - include: ['src/**/*.ts', 'src/**/*.vue', 'src/**/*.js'], + include: ['src/**/*.ts', 'src/**/*.vue', 'src/**/*.js'] }) -] \ No newline at end of file +] diff --git a/build/server.ts b/build/server.ts index 85485a3..4bc95b2 100644 --- a/build/server.ts +++ b/build/server.ts @@ -27,4 +27,4 @@ export default { secure: false } } -} \ No newline at end of file +} diff --git a/commitlint.config.js b/commitlint.config.js index 83a5378..2f590f3 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,5 +1,4 @@ - // eslint-disable-next-line no-undef module.exports = { extends: ['@commitlint/config-conventional'] -}; +} diff --git a/index.html b/index.html index 9716397..d21053a 100644 --- a/index.html +++ b/index.html @@ -1,23 +1,22 @@ - -
- - + + +