Closed honzajavorek closed 9 years ago
After some investigation I found out the .eslintrc
file included in this repository is not a valid JSON file. Even after removing comments, the rules at the bottom (mostly those prefixed react/...
) are with single quotes '
instead of double quotes "
, which causes the parser to throw a syntax error.
I'm willing to work on a fix and send a PR, but I noticed https://github.com/1hella/eslint-config-airbnb-es5/pull/1 is pending and such change would solve the problem, too.
@honzajavorek Sorry about that. It should be working in version 1.0.8 now. The comments are removed in the index.js file, but the single quotes and something in one of the react rules were causing errors.
Thanks! I cannot verify as I realized most of the code I was about to lint was CoffeeScript anyway and I was forced to use coffeelint instead. However, in case I'm going to use ES5 anywhere in the future, I'll surely go with this package.
I believe it's fixed now, so I'm closing the issue.
My settings:
package.json
.eslintrc
(I get the same result with or without the// ...
comment)On
eslint <directory>
I get an error: