Skip to content

Commit 62786e7

Browse files
fix(deps): pin eslint-plugin-vue to exact version 10.6.2
Error: - `npm install` fails with "Unexpected top-level property default" error - ESLint cannot parse configuration from `eslint-plugin-vue` v10.7.0 Reason: - Version `^10.6.2` allows automatic updates to `10.7.0` - `eslint-plugin-vue@10.7.0` introduced TypeScript in build process generating `export default` - This is incompatible with ESLint 8 legacy config format (`.eslintrc.js`) - Upgrading to ESLint 9 is not viable because `@vue/cli-plugin-eslint` does not support it - Project uses Vue 2 with vue-cli which requires ESLint 8 Solution: - Pin exact version `10.6.2` (remove caret) to prevent automatic updates References: - Issue #989 - vuejs/eslint-plugin-vue#2916
1 parent 0439276 commit 62786e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"eslint-config-prettier": "^10.1.8",
6767
"eslint-plugin-jsonc": "^2.21.0",
6868
"eslint-plugin-prettier": "^5.5.5",
69-
"eslint-plugin-vue": "^10.6.2",
69+
"eslint-plugin-vue": "10.6.2",
7070
"eslint-webpack-plugin": "^5.0.2",
7171
"husky": "^9.1.7",
7272
"lint-staged": "^16.2.7",

0 commit comments

Comments
 (0)