diff --git a/.eslintrc.js b/.eslintrc.js index a7dc791a3e909f436f7192180b608baf291bef88..288e4520d09355c59bdbaa1cad352bc040d48b7c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,19 +3,8 @@ const process = require('node:process') process.env.ESLINT_TSCONFIG = 'tsconfig.json' module.exports = { - extends: ['@antfu', '@unocss'], + extends: ['@xingyuv', '@unocss'], rules: { - 'max-len': ['error', { code: 140, tabWidth: 2, ignoreComments: true }], - '@typescript-eslint/no-floating-promises': 'off', - '@typescript-eslint/no-unsafe-assignment': 'off', - '@typescript-eslint/no-unsafe-argument': 'off', - '@typescript-eslint/no-unsafe-member-access': 'off', - '@typescript-eslint/no-unsafe-return': 'off', - '@typescript-eslint/no-unsafe-call': 'off', - '@typescript-eslint/no-misused-promises': 'off', - 'prefer-promise-reject-errors': 'off', - 'no-case-declarations': 'off', 'no-console': 'off', - 'n/prefer-global/process': 'off', }, } diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 5d7e57f38ebd8db245fdadfc88b308f1ad1d12c2..0127df89a9977c77ef2b91159d21cedafa3fdb24 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -6,6 +6,7 @@ "stylelint.vscode-stylelint", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", + "usernamehw.errorlens", "mrmlnc.vscode-less", "lokalise.i18n-ally", "redhat.vscode-yaml", diff --git a/.vscode/settings.json b/.vscode/settings.json index adc418f69900430650e7f54060ceaace8c15b7d7..0e988793f464c253be8d316ed3bb06b00b9872a6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,9 +19,11 @@ "**/.idea": true, "**/.vscode": false, "**/yarn.lock": true, + "pnpm-lock.yaml": true, "**/tmp": true, "out": true, "dist": true, + "public": true, "node_modules": true, "CHANGELOG.md": true, "examples": true, @@ -59,11 +61,17 @@ "@/": "${workspaceRoot}/src" }, "prettier.enable": false, - "editor.formatOnSave": true, + "editor.formatOnSave": false, "editor.codeActionsOnSave": { "source.fixAll.eslint": true, "source.organizeImports": false }, + "eslint.rules.customizations": [ + { + "rule": "@stylistic/*", + "severity": "off" + } + ], "eslint.validate": [ "javascript", "javascriptreact", @@ -80,7 +88,7 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" }, "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" @@ -103,6 +111,7 @@ "[vue]": { "editor.codeActionsOnSave": { "source.fixAll.eslint": true, + "source.organizeImports": false, "source.fixAll.stylelint": true } }, @@ -117,10 +126,12 @@ "i18n-ally.enabledFrameworks": ["vue", "react"], "cSpell.words": [ "antd", + "antdv", "antfu", "antv", "brotli", "browserslist", + "Cascader", "codemirror", "commitlint", "cropperjs", @@ -145,7 +156,9 @@ "unref", "vben", "vditor", + "videojs", "vitejs", + "vuedraggable", "vueuse", "xingyuv", "yudao", @@ -158,7 +171,13 @@ "*.ts": "$(capture).test.ts, $(capture).test.tsx", "*.tsx": "$(capture).test.ts, $(capture).test.tsx", "*.env": "$(capture).env.*", - "package.json": ".hintrc,pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.gitignore,prettier.config.js,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore" + "package.json": ".hintrc,pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.gitignore,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore" + }, + "eslint.codeAction.showDocumentation": { + "enable": true + }, + "eslint.codeAction.showDocumentation": { + "enable": true }, "terminal.integrated.scrollback": 10000, "nuxt.isNuxtApp": false diff --git a/README.md b/README.md index 21c41b1512d3b1dde0d83ccdc8209fabad937206..f24bb9583078c2686d23fbc750bc2f4b54118f38 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,13 @@ | -------------------------------------------------------------------- | --------------------- | ------ | | [Vue](https://staging-cn.vuejs.org/) | Vue 框架 | 3.3.4 | | [Vite](https://cn.vitejs.dev//) | 开发与构建工具 | 4.4.9 | -| [ant-design-vue](https://antdv.com/) | ant-design-vue | 4.0.2 | +| [ant-design-vue](https://antdv.com/) | ant-design-vue | 4.0.3 | | [TypeScript](https://www.typescriptlang.org/docs/) | JavaScript 的超集 | 5.1.6 | | [pinia](https://pinia.vuejs.org/) | Vue 存储库 替代 vuex5 | 2.1.6 | | [vueuse](https://vueuse.org/) | 常用工具集 | 10.4.1 | -| [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化 | 9.2.2 | -| [vue-router](https://router.vuejs.org/) | Vue 路由 | 4.2.4 | -| [unocss](https://uno.antfu.me/) | 原子 css | 0.55.7 | +| [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化 | 9.4.1 | +| [vue-router](https://router.vuejs.org/) | Vue 路由 | 4.2.5 | +| [unocss](https://uno.antfu.me/) | 原子 css | 0.56.1 | | [iconify](https://icon-sets.iconify.design/) | 在线图标库 | 3.1.1 | - ![alt VbenAdmin](https://anncwb.github.io/anncwb/images/preview1.png) diff --git a/index.html b/index.html index ec9c1eabebac5508d6500c15a31849444af6c1b1..ed0f37c8cc131db18f1a53693abfadabc7d44242 100644 --- a/index.html +++ b/index.html @@ -24,12 +24,14 @@
diff --git a/src/components/Basic/src/BasicTitle.vue b/src/components/Basic/src/BasicTitle.vue index 7d9c5ee1347dbc1bcb0b0e73fca00c966329b2e4..6c4fb6f107a3afa3f7c25638a63c1bb51b162c72 100644 --- a/src/components/Basic/src/BasicTitle.vue +++ b/src/components/Basic/src/BasicTitle.vue @@ -72,10 +72,4 @@ const getClass = computed(() => [ margin-left: 10px; } } - -html[data-theme="dark"] { - .@{prefix-cls} { - color: rgb(255 255 255 85%); - } -} diff --git a/src/components/Button/src/BasicButton.vue b/src/components/Button/src/BasicButton.vue index bc0d535f89abdf90130956adbb30b6d9ea3a7011..9072c56af008ac50865cf072901dd7804245ef0f 100644 --- a/src/components/Button/src/BasicButton.vue +++ b/src/components/Button/src/BasicButton.vue @@ -1,20 +1,20 @@