-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
feat(eslint-plugin): add no-unused-vars-experimental #688
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f2af20c
to
6ddba98
Compare
@bradzacher This looks really good. I'll wait to actually approve until it's left WIP status, but I definitely support keeping around the node maps regardless of the |
89c81a5
to
01de581
Compare
One feature of Apparently standard I think it would be good to do one of these things:
|
I would go with implementing a new rule to check unhandled exception The usages that I've seen within the TS community is that they love the I thought about continuing the work to complete the TS specific scope analyser (which would fix the base impl of rule, and a few other rules), but I figured that this was significantly less work, and a lot more interesting because it's aligned with what typescript does by default. |
👍, that's my preferred option as well
One thing I'd like to say there is that I've personally always seen TypeScript as a linter. Ignoring any errors to run tests is really convenient during a refactor. There has been a discussion in #122 (comment), but since then ts-node got a |
A lot of the time people have It's the same philosophy that As another point - it's also generally easier to have a single tsconfig instead of having both a production one, and a development one. Because you don't want to output broken code to prod, you have This philosophy probably stems from the ambiguity of what tsconfig extensions do (it merges |
This comment has been minimized.
This comment has been minimized.
826d2f6
to
7d7fa02
Compare
7d7fa02
to
bf14698
Compare
Codecov Report
@@ Coverage Diff @@
## master #688 +/- ##
==========================================
- Coverage 94.32% 94.25% -0.07%
==========================================
Files 127 128 +1
Lines 5443 5555 +112
Branches 1534 1556 +22
==========================================
+ Hits 5134 5236 +102
- Misses 176 180 +4
- Partials 133 139 +6
|
@bradzacher is there any way to make it work with vue-tempaltes? When a variables is used in the |
Uhh.. not easily, no. This rule would have to be updated to support the |
Is this planned to be solved/is there an issue somewhere for this? I couldn't find any. |
nope. please file an issue if it's something important to you. |
Don't know if helps, but this worked for me using vue and typescript: |
Creates a new, experimental version of
no-unused-vars
.This version leverages typescript's checker to report the unused vars, which saves us from having to build and maintain
Changes from
no-unused-vars
:checker.ts
which is too big for github to render.Fixes #54
Fixes #111
Fixes #316
Fixes #363
Fixes #557
Fixes #571
Fixes #696
Fixes #937
Fixes #965
Fixes #1011
Fixes #1062