A configurable linter for DMN (Decision Model and Notation) diagrams that checks against a set of rules to ensure quality and consistency. Version 0.2.0 is the current stable release, with ongoing development on GitHub. It provides CLI usage and supports integration with dmn-js for visual feedback during modeling. Key differentiators: based on bpmnlint architecture, supports custom rules via plugins and configuration through .dmnlintrc files.
npm install dmnlintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use dmnlint programmatically, including loading a DMN file, linting with default rules, and passing custom configuration.
Wrap in try-catch for synchronous parsing errors.
Convert configuration to JSON.
Follow the plugin example structure.
Use import syntax or dynamic import() if needed.
Create a .dmnlintrc file or use programmatic config.
Check rule name; ensure rules are available via extends or plugin.
Use: import Linter from 'dmnlint';
Fix JSON syntax with a linter or validator.