Skip to content

Commit

Permalink
fix: Move arrow function 'createMarker' to the outer scope unicorn/co…
Browse files Browse the repository at this point in the history
…nsistent-function-scoping

(cherry picked from commit 2d21603cb3f19d792e47148bfb0694da780ada40)
  • Loading branch information
csouchet committed Sep 21, 2023
1 parent 0f7fb5b commit 1f90bed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/component/mxgraph/config/MarkerConfigurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default class MarkerConfigurator {
size: number,
_source: mxCell,
strokewidth: number,
// eslint-disable-next-line unicorn/consistent-function-scoping -- Code from mxGraph example
): (() => void) => {
const nx = unitX * (size + strokewidth + 4);
const ny = unitY * (size + strokewidth + 4);
Expand Down

0 comments on commit 1f90bed

Please sign in to comment.