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

贡献者指南