-
-
Notifications
You must be signed in to change notification settings - Fork 205
Add new rule no-invalid-dependent-keys
#709
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
bf55402
to
ab8f56b
Compare
Sorry about the multiple commits & pushes. This is the second time I push and PR on Github 😕 Let me know if I need to change something 😃 . I struggled a bit to have the CI pass so I will another issue to improve documentation for "newbies" like me 😛 |
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.
Excited to finally see a rule like this!
balanced-braces
835aa39
to
db8bbd1
Compare
@TheMBTH can you remove the unrelated commits? |
balanced-braces
no-invalid-dependent-keys
… that dependent keys used for computed properties to be valid.
I rebased and removed the unrelated commits. I rarely rebase so I am not sure about the result. |
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.
Almost done!
You should rebase on the latest master frequently, this guide might help: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request
context.report({ | ||
node, | ||
message: ERROR_MESSAGE, | ||
loc: { |
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.
loc
should be removed. Instead, the node
that is reported should be string literal node with the violation.
fix: report violations on string literals in `no-invalid-dependent-keys` rule
test: add more valid test cases for `no-invalid-dependent-keys` rule
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.
Thanks! (I added commits to fix a few things for you.)
Hi @bmish .... Sorry for the delay. I didn't know there was a release coming and couldn't find the time. |
A few questions regarding your changes: Have a great week-end 😸 Cheers |
Thanks for contributing @TheMBTH!
|
Okay thx. |
I see, if any of the new |
This rule aims to avoid mismatched open and closed braces.
As discussed in the comments of this issue #105, I added a rule to check that curly braces are balanced within a computed properties' parameters
Fixes #708.