Skip to content

Commit b9095ce

Browse files
authored
feat: 将整体代码规范为ESM (#680)
* chore: update deps mockjs: CVE-2023-26158 vite: CVE-2024-23331 * chore: update deps * chore: explicit definition type * chore: update echarts * feat: change the overall ESM
1 parent 860415d commit b9095ce

File tree

4 files changed

+37
-36
lines changed

4 files changed

+37
-36
lines changed

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
// 一行最多 120 字符..
33
printWidth: 120,
44
// 使用 2 个空格缩进

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// commit-lint config
2-
module.exports = {
2+
export default {
33
extends: ['@commitlint/config-conventional'],
44
rules: {
55
'type-enum': [

package.json

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@tencent/tdesign-vue-next-starter",
33
"version": "0.9.0",
4+
"type": "module",
45
"scripts": {
56
"dev:mock": "vite --open --mode mock",
67
"dev": "vite --open --mode development",
@@ -19,61 +20,61 @@
1920
"test:coverage": "echo \"no test:coverage specified,work in process\""
2021
},
2122
"dependencies": {
22-
"@vueuse/core": "^10.6.1",
23-
"axios": "^1.6.2",
23+
"@vueuse/core": "^10.7.2",
24+
"axios": "^1.6.7",
2425
"dayjs": "^1.11.10",
25-
"echarts": "5.1.2",
26+
"echarts": "5.4.3",
2627
"lodash": "^4.17.21",
2728
"nprogress": "^0.2.0",
2829
"pinia": "^2.1.7",
2930
"pinia-plugin-persistedstate": "^3.2.0",
3031
"qrcode.vue": "^3.4.1",
3132
"qs": "^6.11.2",
3233
"tdesign-icons-vue-next": "^0.2.2",
33-
"tdesign-vue-next": "^1.6.8",
34+
"tdesign-vue-next": "^1.8.1",
3435
"tvision-color": "^1.6.0",
3536
"vue": "~3.3.8",
36-
"vue-i18n": "^9.6.5",
37-
"vue-router": "~4.2.4"
37+
"vue-i18n": "^9.9.1",
38+
"vue-router": "~4.2.5"
3839
},
3940
"devDependencies": {
40-
"@commitlint/cli": "^18.4.1",
41-
"@commitlint/config-conventional": "^18.4.0",
41+
"@commitlint/cli": "^18.6.0",
42+
"@commitlint/config-conventional": "^18.6.0",
4243
"@types/echarts": "^4.9.21",
4344
"@types/lodash": "^4.14.201",
4445
"@types/nprogress": "^0.2.3",
45-
"@types/qs": "^6.9.10",
46-
"@typescript-eslint/eslint-plugin": "^6.11.0",
47-
"@typescript-eslint/parser": "^6.11.0",
48-
"@vitejs/plugin-vue": "^4.4.1",
46+
"@types/qs": "^6.9.11",
47+
"@typescript-eslint/eslint-plugin": "^6.21.0",
48+
"@typescript-eslint/parser": "^6.21.0",
49+
"@vitejs/plugin-vue": "^5.0.4",
4950
"@vitejs/plugin-vue-jsx": "^3.0.2",
50-
"@vue/compiler-sfc": "^3.3.8",
51+
"@vue/compiler-sfc": "~3.3.8",
5152
"@vue/eslint-config-typescript": "^12.0.0",
5253
"commitizen": "^4.3.0",
5354
"cz-conventional-changelog": "^3.3.0",
54-
"eslint": "^8.53.0",
55+
"eslint": "^8.56.0",
5556
"eslint-config-airbnb-base": "^15.0.0",
5657
"eslint-config-prettier": "^9.0.0",
57-
"eslint-plugin-import": "^2.29.0",
58-
"eslint-plugin-prettier": "^5.0.1",
59-
"eslint-plugin-simple-import-sort": "^10.0.0",
60-
"eslint-plugin-vue": "^9.18.1",
61-
"eslint-plugin-vue-scoped-css": "^2.5.1",
62-
"husky": "^8.0.3",
58+
"eslint-plugin-import": "^2.29.1",
59+
"eslint-plugin-prettier": "^5.1.3",
60+
"eslint-plugin-simple-import-sort": "^12.0.0",
61+
"eslint-plugin-vue": "^9.21.1",
62+
"eslint-plugin-vue-scoped-css": "^2.7.2",
63+
"husky": "^9.0.10",
6364
"less": "^4.2.0",
64-
"lint-staged": "^15.1.0",
65+
"lint-staged": "^15.2.2",
6566
"mockjs": "^1.1.0",
66-
"postcss-html": "^1.5.0",
67+
"postcss-html": "^1.6.0",
6768
"postcss-less": "^6.0.0",
68-
"prettier": "^3.1.0",
69-
"stylelint": "~15.11.0",
70-
"stylelint-config-standard": "^34.0.0",
71-
"stylelint-order": "~6.0.3",
72-
"typescript": "~5.3.2",
73-
"vite": "^4.5.0",
74-
"vite-plugin-mock": "^3.0.0",
75-
"vite-svg-loader": "^4.0.0",
76-
"vue-tsc": "^1.8.22"
69+
"prettier": "^3.2.5",
70+
"stylelint": "~16.2.1",
71+
"stylelint-config-standard": "^36.0.0",
72+
"stylelint-order": "~6.0.4",
73+
"typescript": "~5.3.3",
74+
"vite": "^5.1.0",
75+
"vite-plugin-mock": "^3.0.1",
76+
"vite-svg-loader": "^5.1.0",
77+
"vue-tsc": "^1.8.27"
7778
},
7879
"config": {
7980
"commitizen": {
@@ -90,6 +91,6 @@
9091
]
9192
},
9293
"engines": {
93-
"node": ">=16.0.0"
94+
"node": ">=18.0.0"
9495
}
95-
}
96+
}

stylelint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
defaultSeverity: 'error',
33
extends: ['stylelint-config-standard'],
44
rules: {

0 commit comments

Comments
 (0)