-
Notifications
You must be signed in to change notification settings - Fork 4
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
Configuration file #3
Comments
Hmm. That's an interesting idea. When I started on this, I'd primarily thought of it as a tool for formatting newly adopted legacy codebases that were a mess, where you'd just run it once at the start of a project. In that situation having a config file doesn't make much sense. But later as I started making my custom HTML formatters, I started thinking of it as a tool that could be used in CI or as a pre-commit check. If this was something run regularly and automatically (which I think it should aspire to!) then it indeed would make sense to have a config file, similar to .babelrc or .editorconfig, or .eslintrc.json. There is a really nice package called rc that I would lean towards using because it covers all the bases pretty much:
Do you think that would be a good fit for this project? That way users could have a default set of configuration in ~/.beautifyrc and repo level settings in /path/to/repo/.beautifyrc |
Or we could use config-master which is by the same author as |
Hi @wmhilton, thanks for sharing with me At the moment I work with various people and they don't always respect indentation. I'm not annoyed by this, for the productivity sake it's more important to write as they used but I need a way to clean up the code in order to make it more readable. When you will finish, you/me could integrate it as a |
Alright. I'll put |
Hi @wmhilton,
It would be simpler to define a
.beautify
configuration file at the repository root in order to run beautify command without setting parameters.It's something similar to other tools, the configuration would be an YAML or JSON structure and contain parameters on both extension options and processing commands (like folders and extensions).
The text was updated successfully, but these errors were encountered: