Don't mark entry files as unimported
See original GitHub issueNot sure if I just misunderstood something about the configuration, but the way that I understand it, I have to mark tests as entry files, or otherwise test helpers and test dependencies will not be recognized as being imported. But it seems I need to still mark the test files as ignored as well. At the same time, e. g. the pages in my next app are not ignored, but they do not show up in the unimported output. Here’s my config for reference:
{
"ignorePatterns": [
"**/node_modules/**"
],
"ignoreUnimported": [],
"ignoreUnused": [
"next",
"react",
"react-dom"
],
"ignoreUnresolved": [],
"entry": ["pages/**/*", "src/**/*.stories.tsx", "src/**/*.test.ts", "scripts/*.ts"]
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
smeijer/unimported: Find and fix dangling files and ... - GitHub
Find and fix dangling files and unused dependencies in your JavaScript ... code by following the require/import statements starting from your entry file....
Read more >COUNTRY OF ORIGIN MARKING - GovInfo
Customs supervision prior to liquidation of the entry, as provided in 19 U.S.C. 1304(f). The 10 percent additional duty is assessable for failure...
Read more >How to unimport a python module which is already imported?
There's no way to unload something once you've imported it. Python keeps a copy of the module in a cache, so the next...
Read more >Find Unused Source Files in JavaScript/TypeScript Projects
Unimported follows your import statements starting from one or more entry files. For nextjs projects, the entry files default to pages/** . For...
Read more >Import or link to data in a text file - Microsoft Support
Open the Access database in which the imported data will be stored. If you don't want to store the data in any of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it’s related to Windows: https://github.com/dbartholomae/unimported-bug/runs/5058313575
Windows issues have been fixed in
1.20.1
, so I’m gonna assume that this one is also no longer the case. Please reopen if I’m wrong.