Skip to content

Commit

Permalink
fix(linting): account for actual <eventBus> dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Dec 9, 2024
1 parent 8a3e63e commit d3e5726
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cloud-element-templates/linting/LinterPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

import StaticResolver from 'bpmnlint/lib/resolver/static-resolver';
import ElementTemplates from '../ElementTemplates';
import EventBus from 'diagram-js/lib/core/EventBus';

import { getPropertyValue, validateProperty } from '../util/propertyUtil';

import { applyConditions } from '../Condition';
Expand All @@ -30,7 +32,9 @@ export const elementTemplateLintRule = ({ templates = [] }) => {
// We use the ElementTemplates Module without the required bpmn-js modules
// As we only use it to facilitate template ID and version lookup,
// access to commandstack etc. is not required
const elementTemplates = new ElementTemplates();
const eventBus = new EventBus();
const elementTemplates = new ElementTemplates(null, null, eventBus, null, null);

elementTemplates.set(validTemplates);

function check(node, reporter) {
Expand Down

0 comments on commit d3e5726

Please sign in to comment.