Output formatter for markdownlint-cli2 that writes lint results to a JSON file. Current version 0.0.9 is stable and in active development. This package, part of the markdownlint ecosystem, provides a simple, straightforward way to export markdownlint-cli2 results as structured JSON for programmatic consumption, CI systems, or integration with other tools. Unlike other formatters that output to stdout or other formats, this one exclusively writes to a file with customizable name and indentation. It requires markdownlint-cli2 >=0.0.4 as a peer dependency and is configured via the outputFormatters array in the markdownlint-cli2 configuration file.
npm install markdownlint-cli2-formatter-jsonNo compatibility data collected yet for this library.
Installs the package, configures it as a formatter in .markdownlint-cli2.jsonc, and runs markdownlint-cli2 to produce a JSON output file.
Ensure you want to overwrite; consider versioning output files externally.
Create the appropriate config file in the project root directory.
N/A
Run npm install markdownlint-cli2-formatter-json --save-dev
Use .markdownlint-cli2.jsonc (JSON with comments) or .markdownlint-cli2.json if no comments.
Ensure config file contains valid JSON with an outputFormatters array.