Skip to content

Commit ec681f2

Browse files
authored
Update vue-eslint-parser to v8 (#1554)
1 parent 5f3bad5 commit ec681f2

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"nyc": "^15.1.0",
7676
"outdent": "^0.8.0",
7777
"typescript": "^4.4.2",
78-
"vue-eslint-parser": "^7.11.0",
78+
"vue-eslint-parser": "^8.0.0",
7979
"xo": "^0.44.0"
8080
},
8181
"peerDependencies": {

test/utils/parsers.mjs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,10 @@ const vue = {
5959
return require.resolve(this.name);
6060
},
6161
mergeParserOptions(options) {
62-
options = {
62+
return {
6363
...defaultParserOptions,
6464
...options,
6565
};
66-
67-
// The `espree` version in `vue-eslint-parser` does not understand `'latest'` yet.
68-
// https://github.com/vuejs/vue-eslint-parser/pull/113
69-
if (options.ecmaVersion === 'latest') {
70-
options.ecmaVersion = require('espree').latestEcmaVersion;
71-
}
72-
73-
return options;
7466
},
7567
};
7668

0 commit comments

Comments
 (0)