Skip to content

Commit

Permalink
feat: use TS 4.2+ in newly created projects
Browse files Browse the repository at this point in the history
Fixes #6299
  • Loading branch information
haoqunjiang committed Mar 17, 2021
1 parent 9ea68a8 commit 106c323
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
},
"devDependencies": {
"@babel/core": "^7.11.0",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@vue/eslint-config-airbnb": "^5.0.2",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-standard": "^5.1.2",
"@vue/eslint-config-typescript": "^5.0.2",
"@vue/eslint-config-typescript": "^7.0.0",
"@vuepress/plugin-pwa": "^1.5.0",
"@vuepress/theme-vue": "^1.5.0",
"babel-core": "7.0.0-bridge.0",
Expand Down Expand Up @@ -84,7 +84,7 @@
"request-promise-native": "^1.0.8",
"rimraf": "^3.0.2",
"semver": "^6.1.0",
"typescript": "~3.9.3",
"typescript": "~4.2.3",
"vuepress": "^1.5.0",
"webpack": "^4.0.0",
"yorkie": "^2.0.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/@vue/cli-plugin-eslint/eslintDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const DEPS_MAP = {
'eslint-plugin-standard': '^4.0.0'
},
typescript: {
'@vue/eslint-config-typescript': '^5.0.2',
'@typescript-eslint/eslint-plugin': '^2.33.0',
'@typescript-eslint/parser': '^2.33.0'
'@vue/eslint-config-typescript': '^7.0.0',
'@typescript-eslint/eslint-plugin': '^4.18.0',
'@typescript-eslint/parser': '^4.18.0'
}
}

Expand All @@ -32,7 +32,7 @@ exports.getDeps = function (api, preset, rootOptions = {}) {
const deps = Object.assign({}, DEPS_MAP.base, DEPS_MAP[preset])

if (rootOptions.vueVersion === '3') {
Object.assign(deps, { 'eslint-plugin-vue': '^7.0.0-0' })
Object.assign(deps, { 'eslint-plugin-vue': '^7.0.0' })
}

if (api.hasPlugin('typescript')) {
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@types/jest": "^24.0.19",
"@types/mocha": "^5.2.6",
"jscodeshift": "^0.10.0",
"typescript": "~3.9.3",
"typescript": "~4.2.3",
"vue-class-component": "^7.2.3",
"vue-property-decorator": "^9.1.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"prismjs": "^1.20.0",
"rss-parser": "^3.8.0",
"shortid": "^2.2.15",
"typescript": "~3.9.3",
"typescript": "~4.2.3",
"watch": "^1.0.2"
},
"devDependencies": {
Expand Down

0 comments on commit 106c323

Please sign in to comment.