Skip to content
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 use predefined config file #24

Closed
kiliantyler opened this issue Feb 26, 2024 · 2 comments
Closed

Option to use predefined config file #24

kiliantyler opened this issue Feb 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@kiliantyler
Copy link
Owner

Instead of creating and reading from a config file in the extension, use an existing .yamlfmt (or yamlfmt.yaml or yamlfmt.yml) file from within the project

This would also require a setting to allow this to override editor settings, for example:

  • yamlfmt.yaml exists in folder
  • Options in yamlfmt.yaml do not match options set in extension settings
  • Extension has an override setting that allows the in-code yamlfmt.yaml to be used

Optionally this could be disabled to force formatting the way the extension is configured.

With no yamlfmt.yaml config file present, extension settings would be used (or global settings, see: #23 )

Presidence (Highest wins):

  • .yamlfmt (in folder)
  • yamlfmt.yaml (in folder)
  • yamlfmt.yml (in folder)
  • Global settings (if enabled)
  • Extension settings
@kiliantyler kiliantyler added the enhancement New feature or request label Feb 26, 2024
@kiliantyler
Copy link
Owner Author

@kiliantyler
Copy link
Owner Author

Closed with #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant