salesforce / eslint-config-lwc

Opinionated ESLint configurations for LWC projects
MIT License
114 stars 35 forks source link

chore: convert plugin dependencies to peer dependencies #58

Closed ekashida closed 3 years ago

ekashida commented 3 years ago

The ESLint programming model considers shareable configs and plugins as peer dependencies so the way we currently have eslint-plugin-lwc as a dependency of eslint-config-lwc only works when they are treated as peers by package managers such as npm and yarn through hoisting. This breaking change removes plugins as dependencies and declares them as peer dependencies that must be installed by users of this package.

We can remove these peer dependencies when we upgrade to eslint v8 which will implement a new configuration system that will allow us to treat plugins as dependencies.

References: