@camunda/linting 2.2.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Linter.js CHANGED
@@ -77,7 +77,7 @@ export class Linter {
77
77
  this._modeler
78
78
  ),
79
79
  propertiesPanel: {
80
- entryId: entryIds[ Math.max(0, entryIds.length - 1) ]
80
+ entryIds
81
81
  },
82
82
  rule
83
83
  };
@@ -32,12 +32,12 @@ export default class Linting {
32
32
  this._selection.select(element);
33
33
  }
34
34
 
35
- const { entryId } = propertiesPanel;
35
+ const { entryIds = [] } = propertiesPanel;
36
36
 
37
37
  // TODO(philippfromme): remove timeout once properties panel is fixed
38
38
  setTimeout(() => {
39
39
  this._eventBus.fire('propertiesPanel.showEntry', {
40
- id: entryId
40
+ id: entryIds[ Math.max(0, entryIds.length - 1) ]
41
41
  });
42
42
  });
43
43
  }
@@ -28,7 +28,7 @@ export default class LintingAnnotations {
28
28
  }
29
29
 
30
30
  setErrors(reports) {
31
- this._reportsByElement = groupBy(reports, 'id');
31
+ this._reportsByElement = groupBy(reports.filter(report => report.category !== 'rule-error'), 'id');
32
32
 
33
33
  this._update();
34
34
  }
@@ -49,11 +49,11 @@ export function getEntryIds(report) {
49
49
  data = {},
50
50
  id,
51
51
  path,
52
- entryIds
52
+ propertiesPanel = {}
53
53
  } = report;
54
54
 
55
- if (entryIds) {
56
- return entryIds;
55
+ if (propertiesPanel.entryIds) {
56
+ return propertiesPanel.entryIds;
57
57
  }
58
58
 
59
59
  if (isPropertyError(data, 'isExecutable')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/linting",
3
- "version": "2.2.0",
3
+ "version": "3.1.0",
4
4
  "description": "Linting for Camunda Platform",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "dependencies": {
30
30
  "bpmn-moddle": "^8.0.0",
31
- "bpmnlint": "^8.0.0",
31
+ "bpmnlint": "^9.0.0",
32
32
  "bpmnlint-plugin-camunda-compat": "^1.4.0",
33
33
  "bpmnlint-utils": "^1.0.2",
34
34
  "min-dash": "^4.0.0",