Commit 27f1982a authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Add noImplicitReturns

parent 9936c9a0
Pipeline #138002 failed with stages
in 10 minutes and 30 seconds
......@@ -145,5 +145,6 @@ export class CrossTreeRelationshipModalComponent implements OnChanges {
);
}
}
return false;
}
}
......@@ -4,7 +4,7 @@ export default class BmProcessRuleProvider extends RuleProvider {
private static readonly PRIORITY = 1500;
init() {
this.addRule('connection.reconnect', (context) => {
this.addRule('connection.reconnect', (context): false | undefined => {
const currentSource = context.connection.businessObject.sourceRef;
const currentTarget = context.connection.businessObject.targetRef;
const newSource = context.source.businessObject;
......@@ -12,14 +12,16 @@ export default class BmProcessRuleProvider extends RuleProvider {
if (currentSource !== newSource || currentTarget !== newTarget) {
return false;
}
return undefined;
});
this.addRule('elements.move', (context) => {
this.addRule('elements.move', (context): false | undefined => {
if (context.shapes.length > 0) {
const shape = context.shapes[0];
if (context.target && context.target !== shape.parent) {
return false;
}
}
return undefined;
});
}
......
......@@ -124,6 +124,7 @@ export class DevelopmentMethodSelectExecutionStepsComponent
return true;
}
}
return false;
});
}
......
......@@ -3,6 +3,7 @@
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"noImplicitReturns": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment