diff options
author | Chris Rebert <code@rebertia.com> | 2014-03-13 03:26:35 +0400 |
---|---|---|
committer | Chris Rebert <code@rebertia.com> | 2014-03-13 03:30:55 +0400 |
commit | 036da41a1b685a4cf09cfadbb31d5e6ddc8f5119 (patch) | |
tree | a68131a8d7c83198f3d56dd5807cc244532385b8 | |
parent | 1592ac15a8b774dad539b13b465aa73e112fca3d (diff) |
import JSCS config from Ratchet
-rw-r--r-- | .jscsrc | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +{ + "disallowEmptyBlocks": true, + "disallowKeywords": ["with"], + "disallowLeftStickedOperators": ["?", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], + "disallowMixedSpacesAndTabs": true, + "disallowMultipleLineStrings": true, + "disallowMultipleVarDecl": true, + "disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], + "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], + "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], + "disallowTrailingWhitespace": true, + "requireCamelCaseOrUpperCaseIdentifiers": true, + "requireCapitalizedConstructors": true, + "requireCommaBeforeLineBreak": true, + "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"], + "requireLeftStickedOperators": [","], + "requireLineFeedAtFileEnd": true, + "requireParenthesesAroundIIFE": true, + "requireRightStickedOperators": ["!"], + "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], + "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], + "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], + "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true }, + "validateIndentation": 2, + "validateLineBreaks": "LF", + "validateQuoteMarks": "'" +} |