aboutsummaryrefslogtreecommitdiffstats
path: root/.jscs.json
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2013-10-10 18:42:21 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2013-11-13 19:20:16 +0100
commitc462e66f5d2c3da30879e38649e81d34bb7d2587 (patch)
treea7d38d0274f6bd38cdbbd314307f80a991fd83c8 /.jscs.json
parent0e192979d0401c8cfe889b116fffc43cc85bb9fa (diff)
downloadjquery-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.json23
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" ]
+}