javascript: Configuration for rule "eol-last" is invalid: Value "always" must be an enum value.

Hi guys, Look like this commit (https://github.com/airbnb/javascript/commit/e5f4eb57b4733d0b338f120842e719f6df51c035) make the lint failed.

Referenced from: /Users/xxx/node_modules/eslint-config-airbnb-base/index.js
Referenced from: airbnb
Referenced from: /Users/xxxx/package.json
Error: /Users/xxxx/node_modules/eslint-config-airbnb-base/rules/style.js:
    Configuration for rule "eol-last" is invalid:
    Value "always" must be an enum value.

![image](https://cloud.githubusercontent.com/assets/2979072/18807813/45b79cc6-827b-11e6-8f1f-44af40294e2b.png)

I will try submit a pull request.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 3
  • Comments: 18

Commits related to this issue

Most upvoted comments

@ljharb Thanks. You are right, it was Atom causing the issue.

@chaintan17 aha - try adding eslint-config-airbnb-base as a dependency locked to 7.1.0?

Upgrading eslint is the solution to the OP as well.

@hozefaj the only thing I’ve seen with Atom is either mistakenly using a global eslint, or, not restarting Atom after updating node modules. Beyond that, unless you can reproduce the error on the command line directly, I’d file a bug with Atom.

ah, yes! it works! thank you 😃)