Skip to content

JSON

Linters

Linter Additional
jsonlint
JSON_JSONLINT
GitHub stars
eslint-plugin-jsonc
JSON_ESLINT_PLUGIN_JSONC
GitHub stars autofix sarif
v8r
JSON_V8R
GitHub stars
prettier
JSON_PRETTIER
GitHub stars formatter
npm-package-json-lint
JSON_NPM_PACKAGE_JSON_LINT
GitHub stars

Linted files

  • File extensions:
    • .json

Configuration in MegaLinter

Variable Description Default value
JSON_PRE_COMMANDS List of bash commands to run before the linters None
JSON_POST_COMMANDS List of bash commands to run after the linters None
JSON_FILTER_REGEX_INCLUDE Custom regex including filter
JSON_FILTER_REGEX_EXCLUDE Custom regex excluding filter