Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESLint: space-after-keywords replaced by keyword-spacing #84

Open
nerdenough opened this issue Feb 28, 2016 · 2 comments
Open

ESLint: space-after-keywords replaced by keyword-spacing #84

nerdenough opened this issue Feb 28, 2016 · 2 comments

Comments

@nerdenough
Copy link

Been using this excellent guide's .eslintrc for a while now and started getting this error after updating ESLint today: "Rule 'space-after-keywords' was removed and replaced by 'keyword-spacing'".

Turns out space-after-keywords was removed in ESLint v2.0.

pdehaan added a commit that referenced this issue Feb 29, 2016
…ing"

Since this is a breaking eslint@2 change, we should bump the package.json version before publishing a new version to npm.

Fixes #84
@KyleKing
Copy link

KyleKing commented May 27, 2016

+1, I have the same issue

@KyleKing
Copy link

KyleKing commented Jun 14, 2016

If you want a quick fix, use: "space-after-keywords": "off" and something like: "keyword-spacing": [2, {"before": true, "after": true}]

or in my .eslintrc:

{
  "extends": "node-style-guide",
  "parserOptions": {
      "ecmaVersion": 5,
      "sourceType": "script"
  },
  "env": {
    "node": true
  },
  "rules": {
    "space-after-keywords": "off",
    "keyword-spacing": [2, {"before": true, "after": true}]
  }
}

[The single error on each of my JS files finally got to me]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants