-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Optional configuration file #10
Comments
Thanks for the suggestion @guilhermehn, and apologies for the late reply. I think we can support this, are you still interested in working on this? (I understand if you're not, just let us know here so I or someone else can work on this) Regarding the implementation, it should be pretty straightforward to change the behaviour to what you requested by, indeed, removing the error behaviour you described. On top of that I think we should make the There is just one question left open from my perspective: which is if we should add a native way to be able to tell that SVGLint is reading your config file if it's there, or that it wasn't found if it's not there. For example, if I accidentally create a file called
EDIT: rather then going with option 1 here, in the initial implementation of this feature I opted to error if a specified (with |
🎉 This issue has been resolved in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
At the current state, svglint requires a configuration file.
https://github.com/birjolaxew/svglint/blob/8f5b0a2f6c7bc283ae46366dd2fea2e83618a862/src/cli/config.js#L5-L6
Even if it's an empty module, like:
I think it would be better to use an empty object as the default configuration if the configuration file is not found. I've found myself creating empty files the example above for multiple projects. I can work on this if you agree with the change.
The text was updated successfully, but these errors were encountered: