From d971ddb730c5577bd533e7c598e2990c128b1265 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sun, 20 Apr 2014 16:33:23 -0700 Subject: [PATCH] add missing operators to some JSCS rules that we already comply with --- js/.jscsrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/.jscsrc b/js/.jscsrc index fc8bc88ca6..7d91c8e43a 100644 --- a/js/.jscsrc +++ b/js/.jscsrc @@ -6,16 +6,16 @@ "disallowMultipleLineStrings": true, "disallowQuotedKeysInObjects": "allButReserved", "disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], - "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~"], + "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], "disallowTrailingWhitespace": true, "requireCamelCaseOrUpperCaseIdentifiers": true, "requireLeftStickedOperators": [","], "requireLineFeedAtFileEnd": true, "requireRightStickedOperators": ["!"], - "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="], + "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], - "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="], + "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true }, "validateIndentation": 2, "validateLineBreaks": "LF",