From 67477404a7697fe4947150b8ddf5d6a0bb6a3b22 Mon Sep 17 00:00:00 2001 From: Martin Wendt Date: Thu, 11 Jan 2024 20:37:05 +0100 Subject: [PATCH] Fix linter --- package.json | 2 +- src/wunderbaum.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 590cf94c..0e057d4e 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "test": "npm run lint && npm run build:js && grunt ci --verbose", "docs": "typedoc && touch docs/api/.nojekyll && rm docs/unittest/*.*; cp test/unit/*.* docs/unittest", "format": "eslint src --fix && prettier src docs/demo -w && npm run lint", - "lint": "prettier src docs/demo --check && eslint src docs/demo && tsc -t esnext --noEmit", + "lint": "prettier src docs/demo --check && eslint src docs/demo && tsc -t esnext --moduleResolution node --noEmit src/wunderbaum.ts", "build:minjs:umd": "terser build/wunderbaum.umd.js --compress --mangle --source-map \"base='build',url='wunderbaum.umd.min.js.map',filename='wunderbaum.umd.js'\" --output build/wunderbaum.umd.min.js", "build:minjs:esm": "terser build/wunderbaum.esm.js --compress --mangle --source-map \"base='build',url='wunderbaum.esm.min.js.map',filename='wunderbaum.esm.js'\" --output build/wunderbaum.esm.min.js", "build:minjs": "npm run build:minjs:esm -s && npm run build:minjs:umd -s", diff --git a/src/wunderbaum.ts b/src/wunderbaum.ts index 20e75fe2..68e2b8c7 100644 --- a/src/wunderbaum.ts +++ b/src/wunderbaum.ts @@ -1804,8 +1804,8 @@ export class Wunderbaum { util.assert(node, `Option '${change}' requires a node.`); // Single nodes are immediately updated if already inside the viewport // (otherwise we can ignore) - if (node!._rowElem) { - node!._render({ change: change }); + if ((node)!._rowElem) { + (node)!._render({ change: change }); } break; default: