webpro-nl / knip

✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!
https://knip.dev
ISC License
6.93k stars 168 forks source link

đź’ˇ Support `jsconfig.json` for import path aliases by default #787

Open rakleed opened 1 month ago

rakleed commented 1 month ago

Suggest an idea for this project

You say "Knip has good defaults and aims for “zero config”". Then it is worth recognizing the jsconfig.json file by default in addition to tsconfig.json, since it is quite common and supported by many IDEs.^stack-overflow

webpro commented 1 month ago

Just wondering, why is the lack of support an issue for you?

I think the main (and only?) benefit is compilerOptions.paths, right?

rakleed commented 2 weeks ago

Well, I would like everything to work without additional settings. And it seems to me that path aliases are a fairly common setting in large projects.