From 4063529a2573a73881705e0ef3b5b6eede96143b Mon Sep 17 00:00:00 2001 From: Soybean Date: Sun, 3 Mar 2024 10:32:00 +0800 Subject: [PATCH] chore(projects): add unocss eslint config --- eslint.config.js | 2 +- package.json | 1 + .../materials/src/libs/admin-layout/index.vue | 8 +- .../src/libs/page-tab/button-tab.vue | 2 +- .../src/libs/page-tab/chrome-tab.vue | 6 +- .../materials/src/libs/page-tab/svg-close.vue | 2 +- .../src/libs/simple-scrollbar/index.vue | 2 +- pnpm-lock.yaml | 110 +++++++++++++++++- .../advanced/table-column-setting.vue | 4 +- src/components/common/exception-base.vue | 2 +- src/components/custom/look-forward.vue | 4 +- src/components/custom/soybean-avatar.vue | 2 +- src/components/custom/wave-bg.vue | 2 +- src/layouts/modules/global-footer/index.vue | 2 +- src/layouts/modules/global-header/index.vue | 6 +- src/layouts/modules/global-logo/index.vue | 4 +- .../modules/global-menu/first-level-menu.vue | 6 +- .../modules/global-menu/vertical-mix-menu.vue | 6 +- src/layouts/modules/global-sider/index.vue | 2 +- src/layouts/modules/global-tab/index.vue | 6 +- .../components/layout-mode-card.vue | 4 +- .../theme-drawer/components/setting-item.vue | 4 +- .../theme-drawer/modules/config-operation.vue | 2 +- .../theme-drawer/modules/layout-mode.vue | 6 +- src/views/_builtin/login/index.vue | 6 +- .../_builtin/login/modules/code-login.vue | 4 +- .../_builtin/login/modules/pwd-login.vue | 2 +- src/views/_builtin/login/modules/register.vue | 4 +- src/views/home/modules/card-data.vue | 2 +- src/views/home/modules/creativity-banner.vue | 6 +- src/views/home/modules/header-banner.vue | 4 +- src/views/manage/menu/index.vue | 2 +- src/views/manage/role/index.vue | 2 +- src/views/manage/user/index.vue | 2 +- 34 files changed, 165 insertions(+), 64 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 3762778ad..44224b598 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,7 +1,7 @@ import { defineConfig } from '@soybeanjs/eslint-config'; export default defineConfig( - { vue: true }, + { vue: true, unocss: true }, { rules: { 'vue/multi-word-component-names': [ diff --git a/package.json b/package.json index 413de73cb..ee74bcbd7 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "@types/lodash-es": "4.17.12", "@types/node": "20.11.24", "@types/nprogress": "0.2.3", + "@unocss/eslint-config": "0.58.5", "@unocss/preset-icons": "0.58.5", "@unocss/preset-uno": "0.58.5", "@unocss/transformer-directives": "0.58.5", diff --git a/packages/materials/src/libs/admin-layout/index.vue b/packages/materials/src/libs/admin-layout/index.vue index 0c0444c6f..14a099fb5 100644 --- a/packages/materials/src/libs/admin-layout/index.vue +++ b/packages/materials/src/libs/admin-layout/index.vue @@ -116,7 +116,7 @@ function handleClickMask() {
@@ -182,7 +182,7 @@ function handleClickMask() {