Commit aec6c5c
committed
chore!: move eslint-plugin-prettier to peerDependencies
BREAKING CHANGE:
This commit also moves eslint & prettier to peerDependencies.
After this change, users will have to manually install these
dependencies into their project root.
Previously we listed the plugin as a dependency of this config, and that
only works because package managers will hoist the plugin to project
root. This trick is not reliable with current eslint implementation.
This also resulted in a bug when the package manager failed to correctly
hoist the plugin package, see vuejs/vue-cli#4310
More details can be seen at:
- eslint/eslint#3458
- eslint/rfcs#51 parent 0e0712f commit aec6c5c
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | | - | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
0 commit comments