salesforce / eslint-config-lwc

Opinionated ESLint configurations for LWC projects
MIT License
112 stars 36 forks source link

fix: use backwards-compatible configuration for decorators plugin #51

Closed ekashida closed 3 years ago

ekashida commented 3 years ago

Avoids the "Parsing error: Cannot use the decorators and decorators-legacy plugin together" parsing error when the consuming application uses the legacy decorators plugin. This configuration causes no issues when the consuming application is using the new decorators plugin.

ekashida commented 3 years ago

I initially believed that configuring this package to use decorators-legacy would be backwards-compatible but now I'm not so sure.

We either need to figure out how to configure decorators-legacy such that our eslint rules work correctly and verify that this configuration is compatible with the new decorators proposal (unlikely), or to require consuming applications to align with this package and move to the new decorators proposal. If neither of these options are feasible, then we should revert back to babel-eslint.