diff options
| author | Chris Rebert <[email protected]> | 2014-05-04 15:15:02 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-05-04 15:15:02 -0700 |
| commit | 06af640e825d71449c315e84c331a15aa0a7ee7e (patch) | |
| tree | 2b9d928605c917788b48b2057f7d825769b44cee | |
| parent | 04028cf6feb62471a3788cd15804e62b9ce890d7 (diff) | |
| download | bootstrap-06af640e825d71449c315e84c331a15aa0a7ee7e.tar.xz bootstrap-06af640e825d71449c315e84c331a15aa0a7ee7e.zip | |
import rules from Ratchet's JSCS config with which we already comply
| -rw-r--r-- | js/.jscsrc | 5 |
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": "'" |
