Debar/exclude/ignore barrel files automatically in vscode.
Why?
Importing (be it named imports) from barrel files hampers your bundle size very badly.
Features
Install this VSCode extension and it wont suggest you any barrel files in intellisense.
This extension forgiving so it wont black list files its not able to detect as barrels
How to install?
go to the link or search for debarrel in your vscode extensions panel
click install
How to verify?
Press Cmd/Ctrl + shift + P in vscode
Type Workspace settings
click Preferences: Open workspace settings (JSON)
Search for autoImportFileExcludePatterns
Note that all the barrel files are now added to exclude pattern.
How to force the extension after install new npm package?
Press Cmd/Ctrl + shift + P in vscode
Type debarrelify
click Debarrel (force barrel recalculation)
It will recalculate all barrel files from node_modules folder
Facing issues?
Make sure to grab all the logs from "output" panel of vscode. Just select debarrel from the dropdown and paste all the logs in issue you will create in next step.
Feel free to raise issue on the repository using this link
Contributions
Contributions are always welcome.
Read through contributing.md for knowing how to setup the repo.