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

[WIP] tslint edit example rules for no-unused-variable #1784

Closed
wants to merge 1 commit into from

Conversation

cnishina
Copy link
Contributor

No description provided.

@pbugnion
Copy link
Member

Any reason for adding the no-unused-variable rule?

@cnishina
Copy link
Contributor Author

Without no-unused-variable, the following lint warnings happen. There are no tests to validate that these can be removed so the best assumption is that they belong and the lint errors should be ignored.

web-tmpnb:

ipywidgets/examples/web-tmpnb/src/index.ts
ERROR: 46:21  no-unused-variable  'editor' is declared but never used.
ERROR: 57:21  no-unused-variable  'manager' is declared but never used.

web3:

ipywidgets/examples/web3/src/index.ts
ERROR: 33:13  no-unused-variable  'editor' is declared but never used.

ipywidgets/examples/web3/src/manager.ts
ERROR: 18:5   no-unused-variable  'requirePromise' is declared but never used.

@jasongrout
Copy link
Member

The web-tmpnb example is currently broken (noted in the example README) - that's why it's only half-written right now.

For both examples, the editor variable doesn't need to be stored - we could just call the CodeMirror function.

We can delete the requirePromise function in web3. It now uses the HTMLManager, and should import those functions from the lib-embed.ts defined in the html manager package.

@jasongrout
Copy link
Member

And for now, we can just not store the manager created in web-tmpnb to fix the linting error.

@cnishina
Copy link
Contributor Author

cnishina commented Nov 7, 2017

I'll need to update this PR soon.

@jasongrout
Copy link
Member

Ping on this - do you want to update it?

@jasongrout jasongrout added this to the Patch release milestone Mar 16, 2018
@cnishina
Copy link
Contributor Author

Sure. I seem to have been very busy lately. I haven't forgotten about this.

@jasongrout jasongrout changed the title tslint edit example rules for no-unused-variable [WIP] tslint edit example rules for no-unused-variable Mar 19, 2018
@jtpio
Copy link
Member

jtpio commented Mar 5, 2020

Closing, as we have now moved to ESLint!

See #2657 and #2700 for more info.

@jtpio jtpio closed this Mar 5, 2020
@lock lock bot added the resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label May 20, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants