From fef125149d7152b068b52c4ce6f00f411a523465 Mon Sep 17 00:00:00 2001 From: James Ide Date: Fri, 13 Feb 2015 12:35:26 -0800 Subject: [PATCH] [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. --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 9dd9df8a4064b2..6f50347a67f314 100644 --- a/.eslintrc +++ b/.eslintrc @@ -175,7 +175,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)