Skip to content

Commit

Permalink
[Lint] Update space-unary-ops rule in eslintrc (fixes Atom linter crash)
Browse files Browse the repository at this point in the history
`space-unary-word-ops` was replaced with `space-unary-ops`. This fixes an error in Atom with linter-eslint installed.

Upgraded the version of eslint in package.json so that this new change applies.
  • Loading branch information
ide committed Apr 14, 2015
1 parent c412585 commit cfd2e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"space-in-parens": 0, // require or disallow spaces inside parentheses (off by default)
"space-infix-ops": 1, // require spaces around operators
"space-return-throw-case": 1, // require a space after return, throw, and case
"space-unary-word-ops": 1, // require a space around word operators such as typeof (off by default)
"space-unary-ops": [1, { "words": true, "nonwords": false }], // require or disallow spaces before/after unary operators (words on by default, nonwords off by default)
"max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default)
"one-var": 0, // allow just one var statement per function (off by default)
"wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@
},
"devDependencies": {
"jest-cli": "0.2.1",
"eslint": "0.9.2"
"eslint": "^0.19.0"
}
}

0 comments on commit cfd2e3f

Please sign in to comment.