bpmn-js-bpmnlint
Integrates bpmnlint into bpmn-js.
Usage
Integrate the linter into bpmn-js:
import lintModule from 'bpmn-js-bpmnlint';
import BpmnModeler from 'bpmn-js/lib/Modeler';
import bpmnlintConfig from './.bpmnlintrc';
var modeler = new BpmnModeler({
linting: {
bpmnlint: bpmnlintConfig
},
additionalModules: [
lintModule
]
});
Configure Lint Rules
When instantiating bpmn-js you must use the linting.bpmnlint
option to provide linter configuration.
The option takes a packed bpmnlint configuration which you may create from your local .bpmnlintrc
by using the bpmnlint-pack-config utility:
bpmnlint-pack-config -o bundled-config.js
Alternatively you may use an appropriate plugin/loader for your module bundler (cf. rollup-plugin-bpmnlint, bpmnlint-loader) to bundle the configuration directly and pass it as shown above.
Resources
Development Setup
npm install && npm run dev
License
MIT