sveltejs/kit

Add typescript eslint rules

Chiusa

#3457 aperta il 20 gen 2022

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (1719 fork)batch import
help wantedtypes / typescript

Metriche repository

Star
 (17.446 stelle)
Metriche merge PR
 (Merge medio 17g 22h) (184 PR mergiate in 30 g)

Descrizione

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

Guida contributor