Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Clear the unused-variable lint warnings in `census-intake.ts`

Chiusa Adatta ai principianti
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Una pull request collegata è già stata integrata.

  • #377 di @CDVolvik — integrata
  • #381 di @CDVolvik — integrata

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
90/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

In web/, esamina src/lib/intake.ts intorno alla riga 239 ed esegui npm run lint per confermare l’avviso. Rendi anyRecord una dichiarazione di solo tipo oppure ricava il tipo in un altro modo; il lavoro è concluso quando lint non segnala più quell’avviso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue web

npm run lint in web/ warns twice:

./src/lib/census-intake.ts
55:17  Warning: '_guid' is assigned a value but never used.  @typescript-eslint/no-unused-vars
55:33  Warning: '_clientEventId' is assigned a value but never used.  @typescript-eslint/no-unused-vars

The line drops two fields from a row with a destructuring rest (const { guid: _guid, eventId: _clientEventId, ...rest } = row).
The names are discarded on purpose, but the lint rule in web/.eslintrc.js only ignores _-prefixed
function arguments, not variables.

(This issue first named an anyRecord warning in src/lib/intake.ts; that code has since moved to
packages/protocol and the warning is gone. These two are what is left.)

Done when

  • cd web && npm run lint prints no warnings.
  • The fix is either a lint setting (for example ignoreRestSiblings: true or varsIgnorePattern: "^_"
    on @typescript-eslint/no-unused-vars) or a change to the one line. Say in the pull request which
    you picked and why.
  • npm test in web/ still passes; web/src/lib/census-intake.test.ts covers the function.
Lingua principale
TypeScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CDVolvik/everloot

Tutte le issue di CDVolvik/everloot

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.