-
-
Notifications
You must be signed in to change notification settings - Fork 32
feat: no-invalid-properties rule #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi @nzakas!, thanks for the Pull Request The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.
To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page. Read more about contributing to ESLint here |
|
Merging the rules looks good. It avoids that unnecessary check and means you can choose to add syntax customisation at either the rule or language level. I think the rule currently checks both property declarations and descriptor declarations rather than just property ones. You may want to add valid tests for:
As I think it'll incorrectly flag:
|
Ah, nice catch! I didn't realize the same node type was used in both cases. |
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
mdjermanovic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Prerequisites checklist
What is the purpose of this pull request?
Create a new
no-invalid-propertiesrule.What changes did you make? (Give an overview)
no-unknown-propertiesintono-invalid-propertiesno-invalid-property-valuesintono-invalid-propertiesno-invalid-propertiesno-invalid-propertiesno-unknown-propertiesandno-invalid-property-valuesRelated Issues
Refs #9
Is there anything you'd like reviewers to focus on?