-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: properly lint tooling source code #6055
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
build: properly lint tooling source code #6055
Conversation
* Fixes a glob that is responsible for IDE's TypeScript service and also for TSLint * Fixes strict null check errors in the screenshot app. Currently the app can't be compiled properly since strict null checks had been introduced there as well.
if (counter === snapshot.numChildren()) { | ||
return true; | ||
} | ||
return ++counter === snapshot.numChildren(); |
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 prefer not to use increment/decrement expressions as part of a larger expression where the order of the increment/decrement would matter
(here and elsewhere)
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.
Not sure. I thought it's a pretty basic JavaScript syntax. I'm fine changing it if you prefer it though.
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.
Changed it. Please have another look.
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.
It's basic syntax in Java, C++, C#... and in all of those languages, I see this as potentially confusing.
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
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Note: Two remaining lint issues coming from #6044