sveltejs/kit

Add typescript eslint rules

Geschlossen

#3.457 geöffnet am 20.01.2022

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.719 Forks)batch import
help wantedtypes / typescript

Repository-Metriken

Stars
 (17.446 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 17T 22h) (184 gemergte PRs in 30 T)

Beschreibung

Describe the problem

The lack of eslint rules for the declaration files allow the type declarations to be inconsistent, specifically preferring interfaces over types or vice-versa and using the method notation (name(): ReturnType) over the function field notation (name: () => ReturnType).

Describe the proposed solution

Installing the typescript eslint packages to enforce style rules.

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Contributor Guide