bpmnlint is a BPMN diagram validation tool that checks diagrams against configurable lint rules. Current stable version is 11.12.1, with regular releases (approximately every few weeks). It supports BPMN 2.0 diagrams and provides multiple built-in configuration sets: 'recommended', 'correctness', and 'all'. Key differentiators include its focus on BPMN compliance, extensibility via custom plugins, moddle extension support for custom BPMN extensions, and both CLI and programmatic API usage. It integrates with bpmn-moddle for diagram parsing and is designed for process modelers and developers in BPMN-based workflows.
npm install bpmnlintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to programmatically lint a BPMN diagram using the bpmnlint API with a recommended config and NodeResolver.
Switch to ES module imports: use `import Linter from 'bpmnlint'` and ensure your project is configured for ESM.
Use `extends: 'bpmnlint:recommended'` instead of directly listing plugins.
Use `import NodeResolver from 'bpmnlint/lib/resolver/node-resolver';`
Use absolute paths or ensure the moddle extension file is relative to the config file.
Replace const Linter = require('bpmnlint') with `import Linter from 'bpmnlint'`.Use default import from 'bpmnlint/lib/resolver/node-resolver': `import NodeResolver from 'bpmnlint/lib/resolver/node-resolver'`.
Create a .bpmnlintrc file in your project root with at least `extends: 'bpmnlint:recommended'`.