diff options
| author | Heinrich Fenkart <[email protected]> | 2014-06-19 11:40:56 +0200 |
|---|---|---|
| committer | Heinrich Fenkart <[email protected]> | 2014-06-19 21:08:05 +0200 |
| commit | 09c2e41ec4c7f3892ee3568f70bf5aef7245cdb2 (patch) | |
| tree | c454fe0d45feb0ff778f4966903d7ebefa268457 | |
| parent | 7bc8db9558bf222196ab57d176aff08fab6ee552 (diff) | |
| download | bootstrap-09c2e41ec4c7f3892ee3568f70bf5aef7245cdb2.tar.xz bootstrap-09c2e41ec4c7f3892ee3568f70bf5aef7245cdb2.zip | |
Remove deprecated JSCS rules and add requireSpaceAfterLineComment
| -rw-r--r-- | js/.jscsrc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/.jscsrc b/js/.jscsrc index e6eb84560..5b481cfb2 100644 --- a/js/.jscsrc +++ b/js/.jscsrc @@ -1,12 +1,12 @@ { "disallowEmptyBlocks": true, "disallowKeywords": ["with"], - "disallowLeftStickedOperators": ["?", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], "disallowMixedSpacesAndTabs": true, "disallowMultipleLineStrings": true, "disallowMultipleVarDecl": true, "disallowQuotedKeysInObjects": "allButReserved", - "disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], + "disallowSpaceAfterPrefixUnaryOperators": ["!"], + "disallowSpaceBeforeBinaryOperators": [","], "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true }, @@ -17,13 +17,13 @@ "requireCapitalizedConstructors": true, "requireCommaBeforeLineBreak": true, "requireDotNotation": true, - "requireLeftStickedOperators": [","], "requireLineFeedAtFileEnd": true, - "requireRightStickedOperators": ["!"], "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], + "requireSpaceAfterLineComment": true, "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true, "beforeOpeningRoundBrace": true }, + "requireSpacesInConditionalExpression": true, "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true }, "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true }, "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true }, |
