@camunda/linting 3.32.0 → 3.33.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 +7 -1
- package/lib/compiled-config.js +27 -2
- package/package.json +3 -3
package/lib/Linter.js
CHANGED
|
@@ -20,6 +20,8 @@ import { toSemverMinor } from './utils/version';
|
|
|
20
20
|
|
|
21
21
|
import defaultPlugins from './plugins';
|
|
22
22
|
|
|
23
|
+
import bpmnlintConfig from 'bpmnlint/config/correctness';
|
|
24
|
+
|
|
23
25
|
const NoopResolver = new StaticResolver({});
|
|
24
26
|
|
|
25
27
|
/**
|
|
@@ -112,6 +114,9 @@ export class Linter {
|
|
|
112
114
|
{
|
|
113
115
|
extends: `plugin:bpmnlint-plugin-camunda-compat/${ configName }`
|
|
114
116
|
},
|
|
117
|
+
{
|
|
118
|
+
extends: 'bpmnlint:correctness'
|
|
119
|
+
},
|
|
115
120
|
...this._plugins.map(({ config = {} }) => config)
|
|
116
121
|
];
|
|
117
122
|
|
|
@@ -154,7 +159,8 @@ export class Linter {
|
|
|
154
159
|
});
|
|
155
160
|
|
|
156
161
|
const ConfigResolver = new StaticResolver({
|
|
157
|
-
[ `config:bpmnlint-plugin-camunda-compat/${ configName }` ]: config
|
|
162
|
+
[ `config:bpmnlint-plugin-camunda-compat/${ configName }` ]: config,
|
|
163
|
+
'config:bpmnlint/correctness': bpmnlintConfig
|
|
158
164
|
});
|
|
159
165
|
|
|
160
166
|
return new Resolver([
|
package/lib/compiled-config.js
CHANGED
|
@@ -77,7 +77,12 @@ const rules = {
|
|
|
77
77
|
"camunda-compat/user-task-definition": "warn",
|
|
78
78
|
"camunda-compat/user-task-form": "error",
|
|
79
79
|
"camunda-compat/version-tag": "error",
|
|
80
|
-
"camunda-compat/wait-for-completion": "error"
|
|
80
|
+
"camunda-compat/wait-for-completion": "error",
|
|
81
|
+
"ad-hoc-sub-process": "error",
|
|
82
|
+
"event-sub-process-typed-start-event": "error",
|
|
83
|
+
"link-event": "error",
|
|
84
|
+
"no-duplicate-sequence-flows": "warn",
|
|
85
|
+
"sub-process-blank-start-event": "error"
|
|
81
86
|
};
|
|
82
87
|
|
|
83
88
|
const config = {
|
|
@@ -287,4 +292,24 @@ cache['bpmnlint-plugin-camunda-compat/version-tag'] = rule_47;
|
|
|
287
292
|
|
|
288
293
|
import rule_48 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/wait-for-completion';
|
|
289
294
|
|
|
290
|
-
cache['bpmnlint-plugin-camunda-compat/wait-for-completion'] = rule_48;
|
|
295
|
+
cache['bpmnlint-plugin-camunda-compat/wait-for-completion'] = rule_48;
|
|
296
|
+
|
|
297
|
+
import rule_49 from 'bpmnlint/rules/ad-hoc-sub-process';
|
|
298
|
+
|
|
299
|
+
cache['bpmnlint/ad-hoc-sub-process'] = rule_49;
|
|
300
|
+
|
|
301
|
+
import rule_50 from 'bpmnlint/rules/event-sub-process-typed-start-event';
|
|
302
|
+
|
|
303
|
+
cache['bpmnlint/event-sub-process-typed-start-event'] = rule_50;
|
|
304
|
+
|
|
305
|
+
import rule_51 from 'bpmnlint/rules/link-event';
|
|
306
|
+
|
|
307
|
+
cache['bpmnlint/link-event'] = rule_51;
|
|
308
|
+
|
|
309
|
+
import rule_52 from 'bpmnlint/rules/no-duplicate-sequence-flows';
|
|
310
|
+
|
|
311
|
+
cache['bpmnlint/no-duplicate-sequence-flows'] = rule_52;
|
|
312
|
+
|
|
313
|
+
import rule_53 from 'bpmnlint/rules/sub-process-blank-start-event';
|
|
314
|
+
|
|
315
|
+
cache['bpmnlint/sub-process-blank-start-event'] = rule_53;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/linting",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.0",
|
|
4
4
|
"description": "Linting for Camunda",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@bpmn-io/diagram-js-ui": "^0.2.3",
|
|
33
33
|
"bpmn-moddle": "^9.0.1",
|
|
34
|
-
"bpmnlint": "^11.
|
|
35
|
-
"bpmnlint-plugin-camunda-compat": "^2.33.
|
|
34
|
+
"bpmnlint": "^11.3.0",
|
|
35
|
+
"bpmnlint-plugin-camunda-compat": "^2.33.1",
|
|
36
36
|
"bpmnlint-utils": "^1.0.2",
|
|
37
37
|
"camunda-bpmn-moddle": "^7.0.1",
|
|
38
38
|
"clsx": "^2.0.0",
|