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
7.06k stars 177 forks source link

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

Open rakleed opened 2 months ago

rakleed commented 2 months 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 2 months 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 1 month 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.