From 3aa36fc610751d89fd29d4db65594bc9b9b42869 Mon Sep 17 00:00:00 2001 From: Chris Barth Date: Wed, 19 Jul 2023 18:46:14 -0400 Subject: [PATCH] Enforce eslint `no-unused-vars` --- .eslintrc.json | 3 +-- src/signed-xml.ts | 2 +- test/key-info-tests.spec.ts | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 35a12381..6b80b465 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,7 +19,6 @@ ], "rules": { "no-console": "error", - "no-unused-vars": "warn", "no-prototype-builtins": "error", "one-var": ["error", "never"], "no-duplicate-imports": "error", @@ -31,7 +30,7 @@ "prefer-template": "error", "deprecation/deprecation": "error", "@typescript-eslint/no-non-null-assertion": "error", - "@typescript-eslint/no-unused-vars": "warn", + "@typescript-eslint/no-unused-vars": "error", "@typescript-eslint/no-this-alias": "error" } } diff --git a/src/signed-xml.ts b/src/signed-xml.ts index 43af106d..761331e4 100644 --- a/src/signed-xml.ts +++ b/src/signed-xml.ts @@ -46,7 +46,7 @@ export class SignedXml { */ inclusiveNamespacesPrefixList: string[] = []; namespaceResolver: XPathNSResolver = { - lookupNamespaceURI: function (prefix) { + lookupNamespaceURI: function (/* prefix */) { throw new Error("Not implemented"); }, }; diff --git a/test/key-info-tests.spec.ts b/test/key-info-tests.spec.ts index 964beb98..e46b2577 100644 --- a/test/key-info-tests.spec.ts +++ b/test/key-info-tests.spec.ts @@ -1,4 +1,3 @@ -import { select } from "xpath"; import * as xmldom from "@xmldom/xmldom"; import * as fs from "fs"; import * as xpath from "xpath";