sveltejs/kit

Add typescript eslint rules

已關閉

#3,457 建立於 2022年1月20日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (1,719 個分叉)batch import
help wantedtypes / typescript

倉庫指標

星標
 (17,446 顆星)
PR 合併指標
 (平均合併 17天 22小時) (30 天內合併 184 個 PR)

描述

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

貢獻者指南