Skip to content

feat: add new rule missing-accessor-keyword#250

Open
jpradelle wants to merge 1 commit into
43081j:masterfrom
jpradelle:accessor
Open

feat: add new rule missing-accessor-keyword#250
jpradelle wants to merge 1 commit into
43081j:masterfrom
jpradelle:accessor

Conversation

@jpradelle

Copy link
Copy Markdown
Contributor

With lit 3, if you want to use standard decorator you need to add accessor keyword to class attributes with following decorators @property(), @state(), @query(), @queryAll(), @queryAssignedElements() and @queryAssignedNodes()

This new rule checks that accessor keyword is not missing and provides a fix to add it. This provides a way to migrate legacy code automatically.

More info on the requirement: https://lit.dev/docs/releases/upgrade/#standard-decorator-migration

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.

1 participant