question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New rule: no-unused-use

See original GitHub issue

Ok this is a terrible name 😃

I’m suggesting a rule that will flag @use 'foo' as foo when foo. is not used

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:13
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
kristerkaricommented, Jan 3, 2020

To me no-unused-module-import sounds like a good name.

3reactions
reintroducingcommented, Jan 27, 2021

I was just about to write up a new issue with this (as I ran into it yesterday) and i’m glad i did a google search first. I don’t want to create noise, but is this still planned?

Read more comments on GitHub >

github_iconTop Results From Across the Web

no-unused-vars - ESLint - Pluggable JavaScript Linter
This rule is aimed at eliminating unused variables, functions, and function parameters. A variable foo is considered to be used if any of...
Read more >
New rule: no-unused-use · Issue #423 · stylelint-scss ... - GitHub
I would say if one is using @use directive, the file that is being "used" should not have side effects. If one uses...
Read more >
no-unused-expression - Rule
Disallows unused expression statements. Unused expressions are expression statements which are not assignments or function calls (and thus usually no-ops).
Read more >
no-unused-vars - TypeScript ESLint
How to Use​ ·.exports = { · "rules": { · // Note: you must disable the base rule as it can report incorrect...
Read more >
ESLint - "no-unused-vars" warning for every import
Looks like your using VSCode, try using "typescript.format. · @JAY-DEV I've added it to the settings. · If you want to keep the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found