Enable typed linting (typescript-eslint recommendedTypeChecked)
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 43/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- eslint, typescript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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:
- 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.
- no-unnecessary-type-assertion and require-await (mostly autofixable or mechanical).
- 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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1
- Forks
- 0
- Ø Merge
- 4 T. 15 Std.
- Gemergte PRs (30 T.)
- 22
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus stackabletech/cockpit
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
stackabletech/cockpit#385 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
stackabletech/cockpit#417 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
HDFS StorageOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
stackabletech/cockpit#406 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
stackabletech/cockpit#403 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
stackabletech/cockpit#402 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in stackabletech/cockpit
Ähnliche Issues
-
Shell: serve the home app's Cookie Policy on a hard reloadEvtl. vergeben @2001anshkaushik hat das heute übernommen. Offenfeature module:ai
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
rocketride-org/rocketride-server#2899 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
wazuh/wazuh-dashboard-plugins#9551 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
gofish-graphics/gofish-graphics#1252 ·
Maintainer antworten meist innerhalb von 1 Tag
-
optimization P3 size:XS
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
josephfung/curia#2366 ·
Maintainer antworten meist innerhalb von 1 Tag
-
type:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
nightgauge/nightgauge#2688 ·
Maintainer antworten meist innerhalb von 1 Tag