Skip to content

Commit 63f5411

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: - PR #821 - vuejs/eslint-plugin-vue#2916
1 parent b01c419 commit 63f5411

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
@@ -54,7 +54,7 @@
5454
"eslint": "^8.57.0",
5555
"eslint-plugin-json": "^3.1.0",
5656
"eslint-plugin-prettier": "^5.5.5",
57-
"eslint-plugin-vue": "^10.6.2",
57+
"eslint-plugin-vue": "10.6.2",
5858
"husky": "^9.1.7",
5959
"lint-staged": "^16.2.7",
6060
"postcss": "^8.5.6",

0 commit comments

Comments
 (0)