This package (v1.0.1) is a CLI tool for linting multiline JSON configuration embedded inside YAML files. It allows you to specify YAML keys containing JSON strings and validates them using jsonlint. The tool is built with oclif and requires Node.js >=12.0.0. It ships TypeScript type declarations. There is no known release cadence; the project appears to be a single-version release. Key differentiators include simple CLI usage with glob support for files and dot-notation for nested keys, making it easy to validate inline JSON in Kubernetes ConfigMaps or similar YAML structures.
npm install yaml-config-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: create a YAML file with a JSON string under a nested key, then run the CLI to validate it.
Pin version in package.json if using programmatic API.
Always provide both --files and --keys options.
Use a separate YAML linter (e.g., yamllint) for YAML syntax validation.
Use Node.js 14 or newer, but verify compatibility.
Fix the JSON syntax in the YAML file (e.g., missing commas, brackets).
Add -k <key> to the command, e.g., -k data.pokemon
Install the package and use ESM import, or run via npx.