-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Add new rule no-get-with-default
#594
Conversation
- Add test cases - Remove autofixable - Include nullish-coalescing operator in rule doc - Include object-method syntax in error message - Remove schema
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.
Good progress!
You should also consider adding an autofixer for this rule as a follow-up (separate PR since it might be tricky). It would replace this.getWithDefault('property', 'default-value')
with (this.get('property') === undefined ? 'default-value' : this.get('property'))
.
Yeah that's a good idea. I'll do that =) |
Remember to run |
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.
Nice work!
@bmish When is the next release? Just wondering so I can give an update to my team. |
I'll release this in a few minutes. |
This is enabled in the
octane
config.