Open ben-eb opened 5 days ago
Thanks @ben-eb! To be honest I'm not really in favor of adding this. Since Knip offers a way to author configuration in TypeScript and as you point out such functions are not so complex to write. Now you can name and use them however you prefer.
Suggest an idea for this project
Hello 👋
Firstly thanks for your work on this project, it's been super useful and has helped a lot with some recent refactoring work I've done. 🎉
One thing I noticed with the configuration is that it can be a little difficult to scan with the magic
!
suffix used for denoting a production entry file. So I found myself writing a couple of helper functions:Even though these functions are not so complex I find that the "tag" applied to the string makes the configuration much more self-documenting. A new developer to the project will most likely wonder what
!
means at the end of a file glob and spend some time looking for this in the documentation.I was wondering if you would be amenable to adding these helpers to the project itself? Perhaps a
not
function could work for a leading!
too, though I think!path/to/files/*.ts
is much more of a standard pattern these days. 🙂Thanks!