概述
@typescript-eslint/eslint-plugin
包含超过 100 条规则,专门用于检测 TypeScript 代码的最佳实践违规、错误和/或风格问题。下面列出了我们的所有规则。
¥@typescript-eslint/eslint-plugin
includes over 100 rules that detect best practice violations, bugs, and/or stylistic issues specifically for TypeScript code. All of our rules are listed below.
提示
我们建议使用 我们预定义的配置 之一来启用大量推荐规则,而不是逐个启用规则 。
¥Instead of enabling rules one by one, we recommend using one of our pre-defined configs to enable a large set of recommended rules.
规则
¥Rules
规则按字母顺序列出。你可以选择根据以下类别过滤它们:
¥The rules are listed in alphabetical order. You can optionally filter them based on these categories:
配置组 (⚙️)
元数据
(以下将更详细地 解释这些类别。)