Shared ESLint plugin for bpmn.io projects, providing lint configurations and rules for browser, node, and testing environments. Current stable version is 2.2.0 (2024). Release cadence: major updates align with ESLint major releases. Key differentiators: tailored for bpmn.io ecosystem, includes recommended profiles for common setups (browser, node, mocha, JSX), and uses flat configs (ESLint 9+) since v2.0.0. Supports ES2022 by default.
npm install eslint-plugin-bpmn-ioNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the plugin with flat config (ESLint 9+), spreading the recommended config and adding custom rules.
Update to ESLint 9 and use import syntax; remove .eslintrc and use flat config array.
Upgrade to v2.0.0+ and migrate to flat config.
Use ...bpmnIoPlugin.configs.recommended (spread operator) in export default array.
Map configs and add files: ['**/*.spec.js'] or similar.
npm install --save-dev eslint-plugin-bpmn-io
Use import statement or set type: 'module' in package.json.
Migrate to eslint.config.js flat config and ESLint 9.
Add import bpmnIoPlugin from 'eslint-plugin-bpmn-io' and include its configs.