sveltejs/kit

Add typescript eslint rules

Fermée

#3 457 ouverte le 20 janv. 2022

 (2 commentaires) (0 réaction) (0 personne assignée)JavaScript (1 719 forks)batch import
help wantedtypes / typescript

Métriques du dépôt

Stars
 (17 446 étoiles)
Métriques de merge PR
 (Merge moyen 17j 22h) (184 PRs mergées en 30 j)

Description

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

Guide contributeur