You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's little to be changed from existing sort-keys rule in eslint to implement the rule for json, so I'm planning to implement and request PR sooner.
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: