-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
USER STORYkind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
The following code should fail the valid-track rule:
class Foo {
@track openModal = false;
openModal;
// ^ Property clashing with existing tracked fields
openModal() {}
// ^ Method clashing with existing tracked fields
}Notes:
- We need to validate that
valid-apiandvalid-wirerules are also subject to this issue where a field is shadowed by another field or method with the same name. - This check should be added behind a flag (prior art: feat: add rule for properties containing both underscores and uppercase charactacters #54) because those rules run whenever a component is published to the Salesforce platform. Without a flag might cause LWC components not being able to the re-published.
jodarove
Metadata
Metadata
Assignees
Labels
USER STORYkind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.