camunda-modeler-linter-plugin

bpmn-js-bpmnlint as a plug-in for the Camunda Modeler

Usage no npm install needed!

<script type="module">
  import camundaModelerLinterPlugin from 'https://cdn.skypack.dev/camunda-modeler-linter-plugin';
</script>

README

camunda-modeler-linter-plugin

CI Compatible with Camunda Modeler version 3.3

bpmnlint as a plugin for the Camunda Modeler.

Screenshot of the plug-in

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