@camunda/linting 2.1.0 → 2.2.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.
Files changed (2) hide show
  1. package/lib/Linter.js +5 -2
  2. package/package.json +1 -1
package/lib/Linter.js CHANGED
@@ -60,7 +60,9 @@ export class Linter {
60
60
 
61
61
  const reportsByRule = await linter.lint(rootElement);
62
62
 
63
- return Object.values(reportsByRule).reduce((allReports, reports) => {
63
+ return Object.entries(reportsByRule).reduce((allReports, entry) => {
64
+ const [ rule, reports ] = entry;
65
+
64
66
  return [
65
67
  ...allReports,
66
68
  ...reports.map(report => {
@@ -76,7 +78,8 @@ export class Linter {
76
78
  ),
77
79
  propertiesPanel: {
78
80
  entryId: entryIds[ Math.max(0, entryIds.length - 1) ]
79
- }
81
+ },
82
+ rule
80
83
  };
81
84
  })
82
85
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/linting",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Linting for Camunda Platform",
5
5
  "main": "index.js",
6
6
  "scripts": {