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

Enable typed linting (typescript-eslint recommendedTypeChecked)

Aperta
#411 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
43/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
eslint, typescript
Ambito
testing, tooling

Direzione di ricerca

Start by reviewing the ESLint configuration and the TypeScript project configuration, especially coverage for e2e/** and drizzle.config.ts; the issue does not name their paths. Then measure the findings for the proposed rules and split the rollout into the listed steps. Done means an agreed rule set is enabled with project service configured for .ts files and the required paths covered.

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

Descrizione

Follow-up from #344. Running with recommendedTypeChecked produced about 1,000 findings, too many for one change.

Measured on main (2026-10-26), after removing noise from the trial config:

Rule Findings
no-unsafe-member-access / -assignment / -call / -return / -argument ~580
require-await 174
no-unnecessary-type-assertion 113
only-throw-error 98 (nearly all SvelteKit throw redirect() / error(), fixed by its allow option)
unbound-method 51
no-floating-promises 30
await-thenable 19
no-misused-promises 17
no-base-to-string 9

Prerequisites:

  • parserOptions.projectService for .ts files, not only Svelte files.
  • A tsconfig that covers e2e/** and drizzle.config.ts. Today the project service can't find them.
  • Lint time goes from about 36 s to about 55 s.

Proposed rollout, one PR per step:

  1. Turn on the rules that catch real bugs: no-floating-promises, no-misused-promises, await-thenable, and only-throw-error with a SvelteKit allow entry.
  2. no-unnecessary-type-assertion and require-await (mostly autofixable or mechanical).
  3. Decide whether to adopt the no-unsafe-* family at all, and how much of it, given how many hits come from untyped JSON and test code.
Lingua principale
TypeScript
Stelle
1
Fork
0
Merge medio
4g 4h
PR unite (30g)
31

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 stackabletech/cockpit

Tutte le issue di stackabletech/cockpit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.