Skip to content
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 lints in plugins/Resizer.es.js #1002

Merged
merged 1 commit into from
Jan 28, 2019
Merged

Fix lints in plugins/Resizer.es.js #1002

merged 1 commit into from
Jan 28, 2019

Conversation

wincent
Copy link
Contributor

@wincent wincent commented Jan 28, 2019

  19:24  error  'box' is defined but never used    no-unused-vars
  71:38  error  'index' is defined but never used  no-unused-vars

I just removed the index param from the forEach call because it is totally standard to omit it.

For the box param, I added configuration to mark params starting with _ as unused, because all the neighboring methods take a box and use it, and I wanted this one to basically say, "I know all my neighbors take a box and I could use it too but I don't need to".

Related: #990

```
  19:24  error  'box' is defined but never used    no-unused-vars
  71:38  error  'index' is defined but never used  no-unused-vars
```

I just removed the `index` param from the `forEach` call because it is
totally standard to omit it.

For the `box` param, I added configuration to mark params starting with
`_` as unused, because all the neighboring methods take a `box` and use
it, and I wanted this one to basically say, "I know all my neighbors
take a `box` and I could use it too but I don't need to".

Related: #990
@julien julien merged commit 6bf7b3c into liferay:2.x-develop Jan 28, 2019
@wincent wincent deleted the lintism branch January 28, 2019 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants