diff --git a/.prettierrc.js b/.prettierrc.js index 3c58064..22227fe 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,4 +1,4 @@ -module.exports = { +export default { // 一行最多 120 字符.. printWidth: 120, // 使用 2 个空格缩进 diff --git a/commitlint.config.js b/commitlint.config.js index 20116c9..b21d451 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,5 +1,5 @@ // commit-lint config -module.exports = { +export default { extends: ['@commitlint/config-conventional'], rules: { 'type-enum': [ diff --git a/package.json b/package.json index 69f8dc3..f75be49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@tencent/tdesign-vue-next-starter", "version": "0.9.0", + "type": "module", "scripts": { "dev:mock": "vite --open --mode mock", "dev": "vite --open --mode development", @@ -19,10 +20,10 @@ "test:coverage": "echo \"no test:coverage specified,work in process\"" }, "dependencies": { - "@vueuse/core": "^10.6.1", - "axios": "^1.6.2", + "@vueuse/core": "^10.7.2", + "axios": "^1.6.7", "dayjs": "^1.11.10", - "echarts": "5.1.2", + "echarts": "5.4.3", "lodash": "^4.17.21", "nprogress": "^0.2.0", "pinia": "^2.1.7", @@ -30,50 +31,50 @@ "qrcode.vue": "^3.4.1", "qs": "^6.11.2", "tdesign-icons-vue-next": "^0.2.2", - "tdesign-vue-next": "^1.6.8", + "tdesign-vue-next": "^1.8.1", "tvision-color": "^1.6.0", "vue": "~3.3.8", - "vue-i18n": "^9.6.5", - "vue-router": "~4.2.4" + "vue-i18n": "^9.9.1", + "vue-router": "~4.2.5" }, "devDependencies": { - "@commitlint/cli": "^18.4.1", - "@commitlint/config-conventional": "^18.4.0", + "@commitlint/cli": "^18.6.0", + "@commitlint/config-conventional": "^18.6.0", "@types/echarts": "^4.9.21", "@types/lodash": "^4.14.201", "@types/nprogress": "^0.2.3", - "@types/qs": "^6.9.10", - "@typescript-eslint/eslint-plugin": "^6.11.0", - "@typescript-eslint/parser": "^6.11.0", - "@vitejs/plugin-vue": "^4.4.1", + "@types/qs": "^6.9.11", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", + "@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue-jsx": "^3.0.2", - "@vue/compiler-sfc": "^3.3.8", + "@vue/compiler-sfc": "~3.3.8", "@vue/eslint-config-typescript": "^12.0.0", "commitizen": "^4.3.0", "cz-conventional-changelog": "^3.3.0", - "eslint": "^8.53.0", + "eslint": "^8.56.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^9.0.0", - "eslint-plugin-import": "^2.29.0", - "eslint-plugin-prettier": "^5.0.1", - "eslint-plugin-simple-import-sort": "^10.0.0", - "eslint-plugin-vue": "^9.18.1", - "eslint-plugin-vue-scoped-css": "^2.5.1", - "husky": "^8.0.3", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-simple-import-sort": "^12.0.0", + "eslint-plugin-vue": "^9.21.1", + "eslint-plugin-vue-scoped-css": "^2.7.2", + "husky": "^9.0.10", "less": "^4.2.0", - "lint-staged": "^15.1.0", + "lint-staged": "^15.2.2", "mockjs": "^1.1.0", - "postcss-html": "^1.5.0", + "postcss-html": "^1.6.0", "postcss-less": "^6.0.0", - "prettier": "^3.1.0", - "stylelint": "~15.11.0", - "stylelint-config-standard": "^34.0.0", - "stylelint-order": "~6.0.3", - "typescript": "~5.3.2", - "vite": "^4.5.0", - "vite-plugin-mock": "^3.0.0", - "vite-svg-loader": "^4.0.0", - "vue-tsc": "^1.8.22" + "prettier": "^3.2.5", + "stylelint": "~16.2.1", + "stylelint-config-standard": "^36.0.0", + "stylelint-order": "~6.0.4", + "typescript": "~5.3.3", + "vite": "^5.1.0", + "vite-plugin-mock": "^3.0.1", + "vite-svg-loader": "^5.1.0", + "vue-tsc": "^1.8.27" }, "config": { "commitizen": { @@ -90,6 +91,6 @@ ] }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } -} \ No newline at end of file +} diff --git a/stylelint.config.js b/stylelint.config.js index 8bfdbdb..0bdf6f6 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { defaultSeverity: 'error', extends: ['stylelint-config-standard'], rules: {