Fix lint errors after upgrades and narrow tsc

This commit is contained in:
Gregory Schier
2025-07-14 10:09:08 -07:00
parent 5c1fba4b0c
commit 6f1fd7a254
35 changed files with 98 additions and 15 deletions

View File

@@ -7,7 +7,8 @@ export const plugin: PluginDefinition = {
name: 'XPath',
description: 'Filter XPath',
onFilter(_ctx, args) {
const doc = new DOMParser().parseFromString(args.payload, 'text/xml');
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const doc: any = new DOMParser().parseFromString(args.payload, 'text/xml');
try {
const result = xpath.select(args.filter, doc, false);
if (Array.isArray(result)) {