-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to specify configuration in the manifest #72
Comments
Thanks for the suggestion! 🙌 Here are my thoughts on introducing config files:
For these reasons, I’m leaning toward not introducing config files. That said, if I’ve overlooked any benefits that are unique to config files, please let me know! I’d also be happy to hear any ideas on improving the API to better address your needs. |
If you have strong preferences against configuration files, I would completely understand and drop the pursuit. I do agree with the points you've mentioned. ESLint, for example, has been famously hard to figure out active runtime configuration for, despite having a What I'm asking for is something extremely bare bones. In my proposal: Do:
Don't:
If implemented in such a way, you don't need to transpile/bundle anything, as the package manifest file is plain json, and there is no implicit configs as the cli specifically needs the path where the config is picked up from. Please let me know if this makes sense, or if it doesn't, I'll try to explain further. I'd like to reiterate that if you have strong feelings against config files, that's also a world we can live in. Thanks! |
I thought your suggestion covered all types of config files, sorry for the misunderstanding. I think its worth giving a shot! If you’re interested in implementing, please let me know |
I'd love to work on this and put up a PR! |
Which branch/PR do you think I should use as a base? I see some fun changes in #74 |
Great! I think #74 is a better choice if you're not in a real hurry 👍 |
Hello!
Would you be interested at all in adding an option to specify configuration, not from the CLI, but within
package.json
? This would be similar toeslintConfig
,prettier
,ava
etc.So then a manifest file could look something like this
Then users would be able to invoke
ts-remove-unused
without having to use the programmatic API or having really long commandsThe text was updated successfully, but these errors were encountered: