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 3 lints by removing UNSUPPORTED_*_API variables #1016

Merged
merged 1 commit into from Jan 29, 2019

Conversation

wincent
Copy link
Contributor

@wincent wincent commented Jan 29, 2019

When I last touched these files I kept these variables in there as a kind of documentation, but I don't think they provide much value to be honest. Removing them to pacify these lints:

src/components/uibridge/button.jsx
  14:6  error  'UNSUPPORTED_BUTTON_API' is assigned a value but never used  no-unused-vars

src/components/uibridge/menu-button.jsx
  15:6  error  'UNSUPPORTED_MENUBUTTON_API' is assigned a value but never used  no-unused-vars

src/components/uibridge/richcombo.jsx
  15:6  error  'UNSUPPORTED_RICHCOMBO_API' is assigned a value but never used  no-unused-vars

With this change, those three files are lint-clean.

Related: #990

When I last touched these files I kept these variables in there as a
kind of documentation, but I don't think they provide much value to be
honest. Removing them to pacify these lints:

```
src/components/uibridge/button.jsx
  14:6  error  'UNSUPPORTED_BUTTON_API' is assigned a value but never used  no-unused-vars

src/components/uibridge/menu-button.jsx
  15:6  error  'UNSUPPORTED_MENUBUTTON_API' is assigned a value but never used  no-unused-vars

src/components/uibridge/richcombo.jsx
  15:6  error  'UNSUPPORTED_RICHCOMBO_API' is assigned a value but never used  no-unused-vars
```

With this change, those three files are lint-clean.

Related: liferay#990
@julien
Copy link
Contributor

julien commented Jan 29, 2019

Just started reviewing :)

:octocat: Sent from GH.

@julien julien merged commit b0c8e80 into liferay:2.x-develop Jan 29, 2019
@wincent wincent deleted the lint/n+8 branch January 29, 2019 15:52
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.

None yet

2 participants