]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add missing operators to some JSCS rules that we already comply with
authorChris Rebert <code@rebertia.com>
Sun, 20 Apr 2014 23:33:23 +0000 (16:33 -0700)
committerChris Rebert <code@rebertia.com>
Sun, 20 Apr 2014 23:33:23 +0000 (16:33 -0700)
js/.jscsrc

index fc8bc88ca6715fb8650a6d449c58701a301b5474..7d91c8e43abd72eacd4862bd23cdd41f19f0f439 100644 (file)
@@ -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",