diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-08 08:51:20 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-08 08:51:20 -0300 |
commit | 21a270ca6efa561cad3e87048cf8deb8a166d55f (patch) | |
tree | 5a941db9062401ef7664efbbf68fb3db9b8775ee /src/util | |
parent | 40729920984ca1362f1672b1307bf7aa32687107 (diff) |
fix miscellaneous eslint errors
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/html.js | 2 | ||||
-rw-r--r-- | src/util/replacer.js | 1 | ||||
-rw-r--r-- | src/util/wiki-data.js | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/util/html.js b/src/util/html.js index a311bbba..b1668558 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -242,7 +242,7 @@ export class Tag { this.selfClosing && !(value === null || value === undefined || - !Boolean(value) || + !value || Array.isArray(value) && value.filter(Boolean).length === 0) ) { throw new Error(`Tag <${this.tagName}> is self-closing but got content`); diff --git a/src/util/replacer.js b/src/util/replacer.js index c5289cc5..647d1f0e 100644 --- a/src/util/replacer.js +++ b/src/util/replacer.js @@ -5,7 +5,6 @@ // function, which converts nodes parsed here into actual HTML, links, etc // for embedding in a wiki webpage. -import {logError, logWarn} from '#cli'; import * as html from '#html'; import {escapeRegex} from '#sugar'; diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js index ad2f82fb..0eab2204 100644 --- a/src/util/wiki-data.js +++ b/src/util/wiki-data.js @@ -1,6 +1,6 @@ // Utility functions for interacting with wiki data. -import {accumulateSum, empty, stitchArrays, unique} from './sugar.js'; +import {accumulateSum, empty, unique} from './sugar.js'; // Generic value operations |