-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Lint remaining static enums in src #36821
Conversation
Hey @erwinmombay! These files were changed:
Hey @alanorozco! These files were changed:
Hey @jeffkaufman! These files were changed:
Hey @gmajoulet! These files were changed:
Hey @processprocess! These files were changed:
Hey @t0mg! These files were changed:
Hey @mszylkowski! These files were changed:
Hey @newmuis! These files were changed:
|
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 see the results when this is through, and hope that my estimations have been wrong 🙃
@@ -1622,10 +1624,10 @@ export function setConsentStateForTesting(newConsentState) { | |||
* | |||
* Copied from src/video-interface.js. | |||
* | |||
* @const {!Object<string, string>} |
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.
surprised you found this given it didn't have an enum annotation
@@ -36,7 +36,9 @@ | |||
* | |||
* @return {!Object} | |||
*/ | |||
module.exports = function (context) { | |||
// eslint-disable-next-line | |||
module.exports = function create(context) { |
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.
- Why do you need to disable line for the line?
- Was this PR automatically generated via the fixer for this rule? If yes how did you detect the vardecl had an enum annotation?
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.
- Eslint requires you to have a
meta: { fixable: 'code' }
field if you have a fixer. I didn't feel like changing the full linter to satisfy. -
- Yes
- What about
vardecl
?
Curious that v0 is down ~0.1kb |
763785c
to
352367f
Compare
43e0129
to
efbdc7d
Compare
It requires its own PR.
efbdc7d
to
f6e5bcb
Compare
These require no refactoring, they're already fully static.
Partial for #36754