mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +00:00
fix: eslint no-unused vars violations and setup
@typescript-eslint documents recommends turning off the base unused-vars rule in eslint explicitly and using '@typescript-eslint/no-unused var' instead. In this case, the base rule failed to correctly report enums. (reported unused even though they were used). Also, fixed two unused variables by adding ignore pattern '_'.
This commit is contained in:
2
nip29.ts
2
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) {
|
||||
|
||||
Reference in New Issue
Block a user