-
Notifications
You must be signed in to change notification settings - Fork 331
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
fix: Added prefer-const to eslint and related changes #700
Conversation
Hi @kumar303, sorry for new PR, I messed up in my previous PR so closed that one. Also, the test for commit |
Hi @aniketkudale, Travis is complaining because the commit message of your second commit doesn't follow format mentioned in the contributing guide. |
Ah, thanks. Noted :) |
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 for following up. This looks great, just one more change request.
let watcher: Watchpack; | ||
const watcher: Watchpack = ( | ||
createWatcher({addonId, client, sourceDir, artifactsDir}) | ||
); |
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.
This is indented too far. It should look like this:
const watcher: Watchpack = (
createWatcher({addonId, client, sourceDir, artifactsDir})
);
This provides a visual indication to the reader that the block is connected to the line opening with const watcher...
.
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 a lot @kumar303 I'll update the change.
In regards to the commit message formatting problem, are you using |
Actually I am using Tortoise SVN tool for commits, so may be this is causing the problem. |
Huh, seems like that should work. I see that TortoiseGit has custom hooks but I don't see why it would ignore our git hooks. |
Let me know if you need help fixing the Flow errors |
Yes, please! This looks interesting. Neither of cmds, |
@kumar303 Will it be ok to use
|
Hi, thanks for the quick response.
You should be using the
All variables that do not get modified must be declared with |
oh, @kumar303 so can we write
|
@aniketkudale you should be able to rewrite it as:
The comma ( Nevertheless, I'm not sure that it is very readable written in this way, I would not be against using the regular syntax in this case, eg.:
|
Thanks @rpl for reply.
This looks readable & simple to understand. |
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! This style check will be very helpful for other contributors. You can ignore the changelog lint failures, we'll be fixing that in #701
Thanks a lot @kumar303 for merging my PR. |
Fixes #640