diff --git a/commitlint.config.js b/commitlint.config.js index 6da72baa..a6b80391 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -17,35 +17,11 @@ module.exports = { ignores: [(commit) => commit.includes("init")], - extends: ["@commitlint/config-conventional"], + // extends: ["@commitlint/config-conventional"], rules: { "body-leading-blank": [2, "always"], "footer-leading-blank": [1, "always"], "header-max-length": [2, "always", 108], - "subject-empty": [2, "never"], - "type-empty": [2, "never"], "subject-case": [0], - "type-enum": [ - 2, - "always", - [ - "feat", - "fix", - "perf", - "style", - "docs", - "test", - "refactor", - "build", - "ci", - "chore", - "revert", - "wip", - "workflow", - "types", - "release", - "merge", - ], - ], }, }; diff --git a/package-lock.json b/package-lock.json index 183d9e83..44b327b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -62,7 +62,7 @@ "stylelint-config-standard": "^33.0.0", "stylelint-order": "^6.0.3", "typescript": "~4.7.4", - "unplugin-auto-import": "^0.18.2", + "unplugin-auto-import": "^0.15.3", "unplugin-vue-components": "^0.19.2", "vite": "^4.5.3", "vite-plugin-monaco-editor": "^1.1.0", @@ -8849,10 +8849,11 @@ } }, "node_modules/local-pkg": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.2.tgz", - "integrity": "sha512-mlERgSPrbxU3BP4qBqAvvwlgW4MTg78iwJdGGnv7kibKjWcJksrG3t6LB5lXI93wXRDvG4NpUgJFmTG4T6rdrg==", + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.3.tgz", + "integrity": "sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==", "dev": true, + "license": "MIT", "engines": { "node": ">=14" }, @@ -13181,20 +13182,19 @@ } }, "node_modules/unplugin-auto-import": { - "version": "0.18.2", - "resolved": "https://registry.npmjs.org/unplugin-auto-import/-/unplugin-auto-import-0.18.2.tgz", - "integrity": "sha512-Dwb3rAic75harVBrVjwiq6H24PT+nBq2dpxV5BH8NNI6sDFaTytvP+iyo4xy7prQbR3r5K6nMs4f5Wp9PE4g8A==", + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/unplugin-auto-import/-/unplugin-auto-import-0.15.3.tgz", + "integrity": "sha512-RLT8SqbPn4bT7yBshZId0uPSofKWnwr66RyDaxWaFb/+f7OTDOWAsVNz+hOQLBWSjvbekr2xZY9ccS8TDHJbCQ==", "dev": true, "license": "MIT", "dependencies": { - "@antfu/utils": "^0.7.10", - "@rollup/pluginutils": "^5.1.0", - "fast-glob": "^3.3.2", - "local-pkg": "^0.5.0", - "magic-string": "^0.30.10", - "minimatch": "^9.0.5", - "unimport": "^3.9.0", - "unplugin": "^1.11.0" + "@antfu/utils": "^0.7.2", + "@rollup/pluginutils": "^5.0.2", + "local-pkg": "^0.4.3", + "magic-string": "^0.30.0", + "minimatch": "^9.0.0", + "unimport": "^3.0.6", + "unplugin": "^1.3.1" }, "engines": { "node": ">=14" @@ -13265,23 +13265,6 @@ "balanced-match": "^1.0.0" } }, - "node_modules/unplugin-auto-import/node_modules/local-pkg": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.0.tgz", - "integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==", - "dev": true, - "license": "MIT", - "dependencies": { - "mlly": "^1.4.2", - "pkg-types": "^1.0.3" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, "node_modules/unplugin-auto-import/node_modules/magic-string": { "version": "0.30.11", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", @@ -21271,9 +21254,9 @@ } }, "local-pkg": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.2.tgz", - "integrity": "sha512-mlERgSPrbxU3BP4qBqAvvwlgW4MTg78iwJdGGnv7kibKjWcJksrG3t6LB5lXI93wXRDvG4NpUgJFmTG4T6rdrg==", + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.3.tgz", + "integrity": "sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==", "dev": true }, "locate-path": { @@ -24544,19 +24527,18 @@ } }, "unplugin-auto-import": { - "version": "0.18.2", - "resolved": "https://registry.npmjs.org/unplugin-auto-import/-/unplugin-auto-import-0.18.2.tgz", - "integrity": "sha512-Dwb3rAic75harVBrVjwiq6H24PT+nBq2dpxV5BH8NNI6sDFaTytvP+iyo4xy7prQbR3r5K6nMs4f5Wp9PE4g8A==", + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/unplugin-auto-import/-/unplugin-auto-import-0.15.3.tgz", + "integrity": "sha512-RLT8SqbPn4bT7yBshZId0uPSofKWnwr66RyDaxWaFb/+f7OTDOWAsVNz+hOQLBWSjvbekr2xZY9ccS8TDHJbCQ==", "dev": true, "requires": { - "@antfu/utils": "^0.7.10", - "@rollup/pluginutils": "^5.1.0", - "fast-glob": "^3.3.2", - "local-pkg": "^0.5.0", - "magic-string": "^0.30.10", - "minimatch": "^9.0.5", - "unimport": "^3.9.0", - "unplugin": "^1.11.0" + "@antfu/utils": "^0.7.2", + "@rollup/pluginutils": "^5.0.2", + "local-pkg": "^0.4.3", + "magic-string": "^0.30.0", + "minimatch": "^9.0.0", + "unimport": "^3.0.6", + "unplugin": "^1.3.1" }, "dependencies": { "@antfu/utils": { @@ -24591,16 +24573,6 @@ "balanced-match": "^1.0.0" } }, - "local-pkg": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.0.tgz", - "integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==", - "dev": true, - "requires": { - "mlly": "^1.4.2", - "pkg-types": "^1.0.3" - } - }, "magic-string": { "version": "0.30.11", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", diff --git a/package.json b/package.json index 547c1359..16e2440f 100644 --- a/package.json +++ b/package.json @@ -71,14 +71,14 @@ "stylelint-config-prettier": "9.0.4", "stylelint-config-standard": "^33.0.0", "stylelint-order": "^6.0.3", - "typescript": "~4.7.4", + "typescript": "~5.3.3", "unplugin-auto-import": "^0.18.2", "unplugin-vue-components": "^0.19.2", "vite": "^4.5.3", "vite-plugin-monaco-editor": "^1.1.0", "vite-plugin-svg-icons": "^2.0.1", "vitest": "^0.25.6", - "vue-tsc": "^1.0.12" + "vue-tsc": "^2.0.29" }, "browserslist": [ "> 1%", diff --git a/vite.config.ts b/vite.config.ts index 1eab0484..b9a07d11 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -37,7 +37,7 @@ export default ({ mode }: ConfigEnv): UserConfig => { vueJsx(), monacoEditorPlugin({}), AutoImport({ - imports: ["vue"], + imports: ["vue", "vue-router"], resolvers: [ElementPlusResolver()], dts: path.resolve(__dirname, "./src/types/auto-imports.d.ts"), }),