1

When using the Atom (v1.0.19) with packages linter (v1.9.1) and linter-eslint (v3.1.1), after every save of any .js file I get the following error:

Configuration for rule "quote-props" is invalid: Value "consistent" must be an enum value.

My .eslintrc contains (among others) quote-props": [2, "consistent"], but when looking at http://eslint.org/docs/rules/quote-props#consistent, this seems like a valid config option.

So why the error, what am I doing wrong?

P.S. If I comment out the quote-props rule, everything works just fine.

1 Answer 1

0

Based on linter-eslint package you are using eslint < 1.0.0 which doesn't support the consistent option.

You have to upgrade it to latest version of eslint. We are almost at 1.7.3 as per releases.

Based on docs for linter-eslint, you can actually install the latest version of eslint and then it will use that.

1
  • In the linter-eslint package in Atom I found the magic option "Use Global Eslint" and installed the newest eslint globally. Everything now works. Thanks!
    – Bugs Bunny
    Oct 30, 2015 at 8:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.