File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
packages/@vue/cli-plugin-eslint/__tests__ Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ test('base', async () => {
12
12
'plugin:vue/essential' , 'eslint:recommended'
13
13
] )
14
14
expect ( pkg . eslintConfig . parserOptions ) . toEqual ( {
15
- parser : 'babel-eslint'
15
+ parser : 'babel-eslint' ,
16
+ ecmaVersion : 2017
16
17
} )
17
18
} )
18
19
@@ -31,7 +32,8 @@ test('airbnb', async () => {
31
32
'@vue/airbnb'
32
33
] )
33
34
expect ( pkg . eslintConfig . parserOptions ) . toEqual ( {
34
- parser : 'babel-eslint'
35
+ parser : 'babel-eslint' ,
36
+ ecmaVersion : 2017
35
37
} )
36
38
expect ( pkg . devDependencies ) . toHaveProperty ( '@vue/eslint-config-airbnb' )
37
39
} )
@@ -51,7 +53,8 @@ test('standard', async () => {
51
53
'@vue/standard'
52
54
] )
53
55
expect ( pkg . eslintConfig . parserOptions ) . toEqual ( {
54
- parser : 'babel-eslint'
56
+ parser : 'babel-eslint' ,
57
+ ecmaVersion : 2017
55
58
} )
56
59
expect ( pkg . devDependencies ) . toHaveProperty ( '@vue/eslint-config-standard' )
57
60
} )
@@ -71,7 +74,8 @@ test('prettier', async () => {
71
74
'@vue/prettier'
72
75
] )
73
76
expect ( pkg . eslintConfig . parserOptions ) . toEqual ( {
74
- parser : 'babel-eslint'
77
+ parser : 'babel-eslint' ,
78
+ ecmaVersion : 2017
75
79
} )
76
80
expect ( pkg . devDependencies ) . toHaveProperty ( '@vue/eslint-config-prettier' )
77
81
} )
You can’t perform that action at this time.
0 commit comments