File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ export default function createConfig({
81
81
// Leave the template parser unspecified,
82
82
// so that it could be determined by `<script lang="...">`
83
83
} ,
84
+ // The internal espree version used by vue-eslint-parser is 9.x, which supports ES2024 at most.
85
+ // While the parser may try to load the latest version of espree, it's not guaranteed to work.
86
+ // For example, if npm accidentally hoists the older version to the top of the node_modules,
87
+ // or if the user installs the older version of espree at the project root,
88
+ // the older versions would be used.
89
+ // But ESLint 9 allows setting the ecmaVersion to 2025, which may cause a crash.
90
+ // So we set the ecmaVersion to 2024 here to avoid the potential issue.
91
+ ecmaVersion : 2024 ,
84
92
ecmaFeatures : {
85
93
jsx : mayHaveJsxInSfc ,
86
94
} ,
You can’t perform that action at this time.
0 commit comments