Skip to content

Commit 31ff577

Browse files
committed
(typescript) add dependencies
1 parent 9ebbe50 commit 31ff577

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
env: {
44
node: true
55
},
6-
extends: ['standard', 'plugin:vue/recommended'],
6+
extends: ['standard', 'plugin:vue/recommended', '@vue/typescript'],
77
rules: {
88
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
99
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
@@ -34,6 +34,6 @@ module.exports = {
3434
]
3535
},
3636
parserOptions: {
37-
parser: 'babel-eslint'
37+
parser: '@typescript-eslint/parser'
3838
}
3939
}

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,21 @@
4646
"vue": "^2.6.10"
4747
},
4848
"devDependencies": {
49+
"@typescript-eslint/eslint-plugin": "^2.33.0",
50+
"@typescript-eslint/parser": "^2.33.0",
4951
"@vue/cli-plugin-babel": "~4.5.0",
5052
"@vue/cli-plugin-eslint": "~4.5.0",
53+
"@vue/cli-plugin-typescript": "~4.5.0",
5154
"@vue/cli-service": "~4.5.0",
5255
"@vue/eslint-config-standard": "^4.0.0",
56+
"@vue/eslint-config-typescript": "^5.0.2",
5357
"babel-eslint": "^10.0.3",
5458
"eslint": "^6.7.2",
5559
"eslint-plugin-vue": "^7.5.0",
5660
"node-sass": "^4.13.0",
5761
"rimraf": "^2.7.1",
5862
"sass-loader": "^8.0.2",
59-
"typescript": "^3.9.7",
63+
"typescript": "^4.0.5",
6064
"vue": "^2.6.10",
6165
"vue-template-compiler": "^2.6.11"
6266
},

0 commit comments

Comments
 (0)