fix(lint): fixes for html-to-react and commons packages

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson
2026-05-06 22:11:30 +02:00
committed by Philip Molares
parent 78062bb75c
commit 420925f490
3 changed files with 5 additions and 3 deletions
+1
View File
@@ -4,6 +4,7 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
// oxlint-disable jest/valid-title
import { describe, expect, it } from '@jest/globals' import { describe, expect, it } from '@jest/globals'
import { ALIAS_REGEX } from './alias.js' import { ALIAS_REGEX } from './alias.js'
+3 -3
View File
@@ -5,11 +5,11 @@
*/ */
import { renderToStaticMarkup } from 'react-dom/server' import { renderToStaticMarkup } from 'react-dom/server'
import { convertHtmlToReact, ParserOptions } from './convertHtmlToReact.js' import { convertHtmlToReact, type ParserOptions } from './convertHtmlToReact.js'
import { convertNodeToReactElement } from './convertNodeToReactElement.js' import { convertNodeToReactElement } from './convertNodeToReactElement.js'
import { Document, isTag, isText } from 'domhandler' import { Document, isTag, isText } from 'domhandler'
import { NodeToReactElementTransformer } from './NodeToReactElementTransformer.js' import type { NodeToReactElementTransformer } from './NodeToReactElementTransformer.js'
import React, { ReactElement } from 'react' import React, { type ReactElement } from 'react'
import { describe, expect, it } from '@jest/globals' import { describe, expect, it } from '@jest/globals'
const expectSameHtml = function (html: string, options: ParserOptions = {}) { const expectSameHtml = function (html: string, options: ParserOptions = {}) {
@@ -3,6 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import { describe, expect, it } from '@jest/globals'
import { convertInlineStyleToMap } from './convertInlineStyleToMap.js' import { convertInlineStyleToMap } from './convertInlineStyleToMap.js'
describe('convertInlineStyleToMap', () => { describe('convertInlineStyleToMap', () => {