sveltejs/kit

Add typescript eslint rules

クローズ

#3,457 opened on 2022/01/20

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,719 件のフォーク)batch import
help wantedtypes / typescript

Repository metrics

Stars
 (17,446 個のスター)
PR merge metrics
 (平均マージ 17d 22h) (30d で 184 merged PRs)

説明

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

コントリビューターガイド