eslint rule for declarations

This commit is contained in:
JFH
2021-05-28 17:03:29 +02:00
parent 01b022b1e7
commit 99ee706c18
56 changed files with 488 additions and 486 deletions

View File

@@ -350,8 +350,8 @@ class LayersPanel {
*/
toggleHighlightLayer(layerNameToHighlight) {
let i;
const curNames = [],
numLayers = this.editor.svgCanvas.getCurrentDrawing().getNumLayers();
const curNames = [];
const numLayers = this.editor.svgCanvas.getCurrentDrawing().getNumLayers();
for (i = 0; i < numLayers; i++) {
curNames[i] = this.editor.svgCanvas.getCurrentDrawing().getLayerName(i);
}