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

Feature request: even array indention #199

Closed
hudlow opened this issue Dec 6, 2022 · 2 comments · Fixed by #200
Closed

Feature request: even array indention #199

hudlow opened this issue Dec 6, 2022 · 2 comments · Fixed by #200
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@hudlow
Copy link

hudlow commented Dec 6, 2022

I prefer the following indention for YAML arrays:

parent:
  array:
  - one
  - two

Would it be possible to add an option to the indent rule to enforce this indention for arrays?

@ota-meshi
Copy link
Owner

Thank you for posting issue.
I think adding an option for indent rule would be a good thing.

@ota-meshi ota-meshi added enhancement New feature or request help wanted Extra attention is needed labels Dec 6, 2022
@ota-meshi
Copy link
Owner

Note that nested arrays require indentation.

-
 - a
 - b
-
 - a
 - b

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

Successfully merging a pull request may close this issue.

2 participants