sveltejs/kit

Add typescript eslint rules

Closed

#3,457 创建于 2022年1月20日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (17,446 star) (1,719 fork)batch import
help wantedtypes / typescript

描述

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

贡献者指南