diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-10-10 18:42:21 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-11-13 19:20:16 +0100 |
commit | c462e66f5d2c3da30879e38649e81d34bb7d2587 (patch) | |
tree | a7d38d0274f6bd38cdbbd314307f80a991fd83c8 /.jscs.json | |
parent | 0e192979d0401c8cfe889b116fffc43cc85bb9fa (diff) | |
download | jquery-ui-c462e66f5d2c3da30879e38649e81d34bb7d2587.tar.gz jquery-ui-c462e66f5d2c3da30879e38649e81d34bb7d2587.zip |
Build: Add jscs task for code style checking
Diffstat (limited to '.jscs.json')
-rw-r--r-- | .jscs.json | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.jscs.json b/.jscs.json new file mode 100644 index 000000000..6540c8f39 --- /dev/null +++ b/.jscs.json @@ -0,0 +1,23 @@ +{ + "requireCurlyBraces": [ "if", "else", "for", "while", "do" ], + "requireSpaceAfterKeywords": [ "if", "else", "for", "while", "do", "switch", "return" ], + "requireSpacesInFunctionExpression": { + "beforeOpeningCurlyBrace": true + }, + "disallowSpacesInFunctionExpression": { + "beforeOpeningRoundBrace": true + }, + "requireMultipleVarDecl": true, + "requireSpacesInsideObjectBrackets": "all", + "requireSpacesInsideArrayBrackets": "all", + "disallowLeftStickedOperators": [ "?", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ], + "disallowRightStickedOperators": [ "?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], + "requireRightStickedOperators": [ "!" ], + "requireLeftStickedOperators": [ "," ], + "disallowKeywords": [ "with" ], + "disallowMultipleLineBreaks": true, + "disallowKeywordsOnNewLine": [ "else" ], + "requireLineFeedAtFileEnd": true, + + "excludeFiles": [ "src/intro.js", "src/outro.js" ] +} |