-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix jshint warnings #11109
Fix jshint warnings #11109
Conversation
Addresses #9153 Remove JSHint warnings |
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.
Let's just disable these two rules via the following in .jshintrc
:
"sub": true,
"multistr": true,
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.
Can you please revert the changes to the multiline strings and references like clickedItem['name']
? Then please squash your commits.
ok so just make changes to the .jshint and the missing semicolons? |
Yes please, also the |
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 coming along well. Almost ready 😄. I just had a couple more minor comments.
@@ -1,4 +1,7 @@ | |||
{ | |||
"sub": true, | |||
"multistr": true, | |||
"-W018": true, |
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.
Sorry, I was trying to say that we should fix the issues where "confusing use of '!'" gave a warning, not exclude the rule.
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 i will look into it, but I'm not sure why its showing a warning
Nebraska, Nevada, New Hampshire, New Jersey, New Mexico, New York, North Carolina,\ | ||
North Dakota, Ohio, Oklahoma, Oregon, Pennsylvania, Rhode Island, South Carolina,\ | ||
South Dakota, Tennessee, Texas, Utah, Vermont, Virginia, Washington, West Virginia,\ | ||
Wisconsin, Wyoming'; |
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.
Can you please remove these added spaces? It should be indented 8 spaces, not 9.
these are giving me some problems to fix if (!!value === targetValue) |
OK, yeah it's not trivial to fix those. Let's go with your first instinct and just exclude that rule in the |
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.
Code looks good now, thank you. Please squash your commits and then we can get this submitted to be merged.
I would like to get this merged into 1.1.8 as we're hoping to release it this week, can you please squash your commits so that we can merge this? |
add sub:true and multistr=true to .jshintrc revert and remove confusing use of ! warning update fix fix space exclude warnings
ok so i was trying to do the rebase. after squash attempt: commit 8752694 Fail to Push: ! [rejected] fix-jshint -> fix-jshint (non-fast-forward) |
Have you tried force push? That's needed when re-writing a remote branch's history like we want to do when squashing commits. |
ok that did the trick |
add sub:true and multistr=true to .jshintrc revert and remove confusing use of ! warning update fix fix space exclude warnings
add sub:true and multistr=true to .jshintrc revert and remove confusing use of ! warning update fix fix space exclude warnings
PR Checklist
Please check that your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #9153
What is the new behavior?
Does this PR introduce a breaking change?
Other information