Commit c6d8314
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:
- PR #907
- vuejs/eslint-plugin-vue#2916eslint-plugin-vue to exact version 10.6.2
1 parent 0349bee commit c6d8314
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 | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments