Skip to content

Conversation

@ekashida
Copy link
Member

@ekashida ekashida commented Apr 3, 2021

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
Copy link
Member Author

ekashida commented Apr 3, 2021

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.

avoid possibility of using decorators/decorators-legacy together
@ekashida ekashida force-pushed the ekashida/decorators-compatible-configuration branch from 935b345 to 2ba84c7 Compare April 12, 2021 11:21
@ekashida ekashida merged commit 401e142 into master Apr 12, 2021
@ekashida ekashida deleted the ekashida/decorators-compatible-configuration branch April 12, 2021 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants