1

我正在使用 ESLint 1.1.0 对我的 javascript 文件进行 lint。我收到“id-match”规则错误。这是规则定义:

"id-match": [ 2, "^[a-z,$]+([A-Z][a-z]+)*$", { "properties": false } ]

它抱怨的代码在这里:

var startDate = new Date();

错误信息是:

32:25 错误标识符 'Date' 与模式 '^[az,$]+([AZ][az]+)*$' 不匹配

我难住了。

4

0 回答 0