| title | JSON linters in MegaLinter |
|---|---|
| description | jsonlint, eslint-plugin-jsonc, v8r, prettier, npm-package-json-lint are available to analyze JSON files in MegaLinter |
| Linter | Additional |
|---|---|
| jsonlint JSON_JSONLINT |
|
| eslint-plugin-jsonc JSON_ESLINT_PLUGIN_JSONC |
|
| v8r JSON_V8R |
|
| prettier JSON_PRETTIER |
|
| npm-package-json-lint JSON_NPM_PACKAGE_JSON_LINT |
- File extensions:
.json
| 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 |