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

Add sort-keys rule #126

Open
naltatis opened this issue Jan 20, 2023 · 2 comments
Open

Add sort-keys rule #126

naltatis opened this issue Jan 20, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@naltatis
Copy link

I'd like to have a rule that ensures that tables and keys are in alphabetical order. Similar to e.g jsonc/sort-keys.

# ✓ GOOD
[alpha]
y = 2
z = 3

[beta]
x = 1

# ✗ BAD
[beta]
x = 1

[alpha]
z = 3
y = 2
@andig
Copy link

andig commented Jan 21, 2023

I guess comments are a problem when sorting?

@ota-meshi
Copy link
Owner

Thank you for the rule suggestions. That rule sounds good to me.

@ota-meshi ota-meshi added enhancement New feature or request help wanted Extra attention is needed labels Jan 21, 2023
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

No branches or pull requests

3 participants