-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
prefer-spread
: Insert semicolon if needed
#578
Conversation
const sourceCode = context.getSourceCode(); | ||
const getSource = node => sourceCode.getText(node); | ||
|
||
const needsSemicolon = node => { |
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.
Should this be in util
?
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.
I tried to make a better util function for this, but seems need handle differently in different case.I don't think current implementation can use in other rule, at least not yet.
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.
Ok. Just something to keep in mind in case we need it in multiple places.
Yes, GitHub bug. I experienced it on another repo earlier too... |
Can you report it? I’m AFK. |
I'm sure there is still other case not handled, but should good enough for #254
Fix #254