Skip to content

Commit cfd2e3f

Browse files
committed
[Lint] Update space-unary-ops rule in eslintrc (fixes Atom linter crash)
`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.
1 parent c412585 commit cfd2e3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
"space-in-parens": 0, // require or disallow spaces inside parentheses (off by default)
177177
"space-infix-ops": 1, // require spaces around operators
178178
"space-return-throw-case": 1, // require a space after return, throw, and case
179-
"space-unary-word-ops": 1, // require a space around word operators such as typeof (off by default)
179+
"space-unary-ops": [1, { "words": true, "nonwords": false }], // require or disallow spaces before/after unary operators (words on by default, nonwords off by default)
180180
"max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default)
181181
"one-var": 0, // allow just one var statement per function (off by default)
182182
"wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@
6666
},
6767
"devDependencies": {
6868
"jest-cli": "0.2.1",
69-
"eslint": "0.9.2"
69+
"eslint": "^0.19.0"
7070
}
7171
}

0 commit comments

Comments
 (0)