diff --git a/.eslintrc.json b/.eslintrc.json index 75dc940..a210ef2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -116,7 +116,8 @@ "no-unexpected-multiline": 2, "no-unneeded-ternary": [2, { "defaultAssignment": false }], "no-unreachable": 2, - "no-unused-vars": [2, { "vars": "local", "args": "none", "varsIgnorePattern": "^_" }], + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [2, { "vars": "local", "args": "none", "varsIgnorePattern": "^_" }], "no-useless-call": 2, "no-useless-constructor": 2, "no-with": 2, diff --git a/nip29.ts b/nip29.ts index d39e554..3b9a1f3 100644 --- a/nip29.ts +++ b/nip29.ts @@ -144,7 +144,7 @@ export function validateGroupAdminsEvent(event: Event): boolean { } // validate permissions - for (const [tag, value, label, ...permissions] of event.tags) { + for (const [tag, _value, _label, ...permissions] of event.tags) { if (tag !== 'p') continue for (let i = 0; i < permissions.length; i += 1) {