-
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
tools(lint): add lint rule for unused vars and params. #1220
Conversation
cad69fc
to
5b1c49f
Compare
@@ -65,7 +62,7 @@ export function twitter(global, data) { | |||
// Unfortunately the tweet isn't really done at this time. | |||
// We listen for resize to learn when things are | |||
// really done. | |||
iframe.contentWindow.addEventListener('resize', function(e) { | |||
iframe.contentWindow.addEventListener('resize', function(_e) { |
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.
Just remove?
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.
👍
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.
done.
5b1c49f
to
575eca3
Compare
575eca3
to
eaa05ea
Compare
- any variable that has a suffix `Def` or `Interface` is ignored. - any parameter that has a prefix `_`, `opt_`, `var_`, `unused_` is ignored.
eaa05ea
to
fba2484
Compare
@cramforce all lint issues resolved |
LGTM |
tools(lint): add lint rule for unused vars and params.
Def
orInterface
is ignored.unused_
is ignored.Closes #1212
/cc @cramforce @jridgewell @dvoytenko @sriramkrish85
feel free to make any suggestions on any of these conventions.