JSON / JSONC
Ready24 lint rules
Each bar is measured on real-world code against the default rule set of the reference tool; the tick marks 85%. Ready means the first tool of each column is at least 85%; the others are shown for reference. How JSON / JSONC is measured.
Parity
Section titled “Parity”Format
Lint
| Task | Compared with | Sudsy speed | Time (Sudsy / tool) | Peak memory (Sudsy / tool) |
|---|---|---|---|---|
| Format | Prettier | 26× faster | 0.009 s / 0.23 s | 43 / 85 MB |
| Format | Biome | 4.1× faster | 0.009 s / 0.037 s | 43 / 42 MB |
| Lint | eslint-plugin-jsonc | 1.4× faster | 0.87 s / 1.18 s | 866 / 75 MB |
| Format | dprint | 1.7× faster | 0.007 s / 0.012 s | 73 / 73 MB |
Presets
Section titled “Presets”A preset is an ordinary sudsy.yaml; use one with extends.
json/biome:extends: [preset:json/biome]json/dprint:extends: [preset:json/dprint]json/eslint-plugin-jsonc-recommended:extends: [preset:json/eslint-plugin-jsonc-recommended]json/prettier-compat:extends: [preset:json/prettier-compat]
24 lint rules apply to JSON / JSONC: browse them.