About
Flint’s JSON plugin supports linting .json
source code.
It comes provided with the flint
npm package.
Presets
Section titled “Presets”Flint’s JSON plugin provides the following preset:
Preset | Recommended | Description |
---|---|---|
logical | ✅ Always | Common rules for finding bugs and good practices in JSON files. |
Flint recommends using the logical
preset:
import { defineConfig, json } from "flint";
export default defineConfig({ use: [ { files: json.files.all, rules: json.presets.logical, }, ],});
logical
Section titled “logical”Rules that find bugs and enforce good JSON practices for most-to-all JSON files.
import { defineConfig, json } from "flint";
export default defineConfig({ use: [ { files: json.files.all, rules: json.presets.logical, }, ],});
Flint Name | Preset | Biome Rule(s) | Deno Lint Rule(s) | ESLint Rule(s) | Oxlint Rule(s) |
---|---|---|---|---|---|
keyDuplicates | Logical | no-dupe-keys | jsonc/no-dupe-keys | ||
keyNormalization | Logical | json/no-unnormalized-keys | |||
valueSafety | Logical | json/no-unsafe-values |
Selectors
Section titled “Selectors”Flint’s JSON plugin provides the following files selector:
all
:**/*.json
Made with ❤️🔥 in Boston by
Josh Goldberg and contributors.