Skip to content

Commit 59f919e

Browse files
authored
test: un-set ecmaVersion when applyTS is called
Otherwise tests fail when project was created with babel and typescript was added later.
1 parent d96067f commit 59f919e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@vue/cli-plugin-eslint/generator.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ const applyTS = module.exports.applyTS = api => {
8383
eslintConfig: {
8484
extends: ['@vue/typescript'],
8585
parserOptions: {
86-
parser: 'typescript-eslint-parser'
86+
parser: 'typescript-eslint-parser',
87+
// un-set ecmaVersion in case it was set because of babel before (see eslintOptions.js)
88+
ecmaVersion: undefined
8789
}
8890
},
8991
devDependencies: {

0 commit comments

Comments
 (0)