camunda-modeler-linter-plugin
v0.6.0
Published
bpmn-js-bpmnlint as a plug-in for the Camunda Modeler
Downloads
228
Readme
camunda-modeler-linter-plugin
bpmnlint as a plugin for the Camunda Modeler.
Overriding Provided Rules
This plug-ins uses the recommended bpmnlint and Camunda rules.
You may override this via your own Camunda Modeler client plug-in as shown below:
import {
registerBpmnJSPlugin
} from 'camunda-modeler-plugin-helpers';
import customLinterConfig from './.bpmnlintrc';
registerBpmnJSPlugin({
__init__: [
function(linting) {
linting.setLinterConfig(customLinterConfig);
}
]
});
Please note that you must use the bpmnlint-loader to bundle your .bpmnlintrc
for usage in the browser.
For a complete example, checkout the custom-linter-rules-plugin that accomplishes this.
Licence
MIT