Implement "no-unused-import" rule#118
Implement "no-unused-import" rule#118FelixSchuSi wants to merge 19 commits intorunem:masterfrom FelixSchuSi:1.2.0-no-unused-import
Conversation
|
Diagnostics are now created independent of the order of import statements. |
|
This looks awesome @FelixSchuSi !! In order for you to test the VSCode plugin, you will have to run Be aware that I recently merged Have you thought about having a |
|
Thank you for your help @runem! |
…' rule; Current impl breaks nothing.
… different import statement.
…newlines when removing import statement.
|
Hey @runem, I implemented all changes I had planned, here are some things you might want to look at:
|
|
@FelixSchuSi @runem Is it possible to get this rule merged in? This would be really useful, especially when used in conjunction with |

I have tried to implement a
"no-unused-import"rule and so far it has been going great.This is still work in progress — I have included a checklist at the bottom showing all the changes that need to be done.
An import statement is unused, when none of the component definitions that were loaded by this import statement are used.
The dependency traversal now collects information about the import statement that triggered loading a component definition and stores this information in the
dependencyStore.Currently, only side effect only imports (e. g.:
import "./my-module") are evaluated.TODO