Commit 62786e7
committed
fix(deps): pin
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#2916eslint-plugin-vue to exact version 10.6.2
1 parent 0439276 commit 62786e7
2 files changed
+2
-2
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments