在包linter(v1.9.1)和linter-eslint(v3.1.1)中使用Atom(v1.0.19)時,每次保存任何.js
文件我得到以下錯誤:「quote-props」:Atom中的.eslintrc中的「一致」
Configuration for rule "quote-props" is invalid: Value "consistent" must be an enum value.
我.eslintrc
包括(其中包括)quote-props": [2, "consistent"]
,但看着http://eslint.org/docs/rules/quote-props#consistent時,這似乎是一個有效的配置選項。
那麼爲什麼錯誤,我做錯了什麼?
P.S.如果我註釋掉quote-props
規則,一切正常。
在Atom的'linter-eslint'包中,我找到了魔法選項「Use Global Eslint」,並在全球安裝了最新的eslint。現在一切正常。謝謝! –