aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-05-04 15:15:02 -0700
committerChris Rebert <[email protected]>2014-05-04 15:15:02 -0700
commit06af640e825d71449c315e84c331a15aa0a7ee7e (patch)
tree2b9d928605c917788b48b2057f7d825769b44cee
parent04028cf6feb62471a3788cd15804e62b9ce890d7 (diff)
downloadbootstrap-06af640e825d71449c315e84c331a15aa0a7ee7e.tar.xz
bootstrap-06af640e825d71449c315e84c331a15aa0a7ee7e.zip
import rules from Ratchet's JSCS config with which we already comply
-rw-r--r--js/.jscsrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/.jscsrc b/js/.jscsrc
index 7d91c8e43..6725ce89d 100644
--- a/js/.jscsrc
+++ b/js/.jscsrc
@@ -10,13 +10,18 @@
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowTrailingWhitespace": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
+ "requireCapitalizedConstructors": true,
+ "requireDotNotation": true,
"requireLeftStickedOperators": [","],
"requireLineFeedAtFileEnd": true,
"requireRightStickedOperators": ["!"],
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
+ "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true },
+ "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
+ "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
"validateIndentation": 2,
"validateLineBreaks": "LF",
"validateQuoteMarks": "'"