Skip to content

Commit da6bd75

Browse files
authored
fix: when eslint is used, pin ts version to ~3.1.1 (#3214)
Otherwise there will be a warning from typescript-estree@5, which is depended by typescript-eslint-parser@21
1 parent 90d387f commit da6bd75

File tree

3 files changed

+21
-446
lines changed

3 files changed

+21
-446
lines changed

packages/@vue/cli-plugin-typescript/generator/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = (api, {
99

1010
api.extendPackage({
1111
devDependencies: {
12-
typescript: '^3.0.0'
12+
typescript: api.hasPlugin('eslint') ? '~3.1.1' : '^3.0.0'
1313
}
1414
})
1515

packages/@vue/cli-plugin-typescript/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@types/chai": "^4.1.0",
3737
"@types/jest": "^23.1.4",
3838
"@types/mocha": "^5.2.4",
39-
"typescript": "^3.0.0",
39+
"typescript": "~3.1.1",
4040
"vue-class-component": "^6.2.0",
4141
"vue-property-decorator": "^7.0.0"
4242
}

0 commit comments

Comments
 (0)