-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feat: sort-keys
rule
#75
Comments
RobertAKARobin
added
bug
Something isn't working
repro:needed
This issue should include a reproducible example
labels
Dec 20, 2024
|
There's little to be changed from existing |
@haenah Actually I'm working on it now. Will submit soon. |
1 task
mdjermanovic
added
feature
accepted
and removed
bug
Something isn't working
repro:needed
This issue should include a reproducible example
labels
Jan 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
ESLint version: 9.17.0
@eslint/json version: 0.9.0
Node version: 20.11.0
npm version: 10.8.2
Operating System: macOS 15.1
Which language are you using?
json
What did you do?
Configuration
index.js
An error for
sort-keys
is thrown in this file as expected:index.json
No
sort-keys
error is thrown in this file:What did you expect to happen?
I expected a
sort-keys
error to be thrown because the JSON object's keys were not in alphabetical order.What actually happened?
A
sort-keys
error was not thrown.Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-pauaycvs?file=eslint.config.js
Participation
Additional comments
https://eslint.org/docs/latest/rules/sort-keys
The text was updated successfully, but these errors were encountered: