Open DavidDong93 opened 8 years ago
The rules we distribute need to be of importance to a large number of developers 我们发布的规则应对大众的开发者具有重要性
Rules cannot be so specific that users will have trouble understanding when to use them 规则不能太具体而导致用户在明白该何时使用这些这些规则时有困难
A rule is typically too specific if describing what it does requires more than two "and"s (if a and b and c and d, then this rule warns) 如果一条规则需要两个以上的“且”来描述,那么它通常就是太具体了(例:如果条件a且条件b且条件c得到满足,那么这条规则会发出警告)
each rule is evaluated on its own basis 每一个规则会被按照它自己的情况进行评估(译注:就是个例评估的意思)
As a result, even if we like the idea for a rule, we may not have the resources to implement it 因此,即使我们喜欢某条规则的想法,我们可能没有资源去实现它
docs/developer-guide/contributing/new-rules In general, ESLint core rules must be 一般而言,ESLint 核心规则必须具有如下特点