Skip to content
This repository was archived by the owner on Sep 17, 2018. It is now read-only.

Commit 036da41

Browse files
committed
import JSCS config from Ratchet
1 parent 1592ac1 commit 036da41

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.jscsrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"disallowEmptyBlocks": true,
3+
"disallowKeywords": ["with"],
4+
"disallowLeftStickedOperators": ["?", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
5+
"disallowMixedSpacesAndTabs": true,
6+
"disallowMultipleLineStrings": true,
7+
"disallowMultipleVarDecl": true,
8+
"disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
9+
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
10+
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
11+
"disallowTrailingWhitespace": true,
12+
"requireCamelCaseOrUpperCaseIdentifiers": true,
13+
"requireCapitalizedConstructors": true,
14+
"requireCommaBeforeLineBreak": true,
15+
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"],
16+
"requireLeftStickedOperators": [","],
17+
"requireLineFeedAtFileEnd": true,
18+
"requireParenthesesAroundIIFE": true,
19+
"requireRightStickedOperators": ["!"],
20+
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
21+
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
22+
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
23+
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
24+
"validateIndentation": 2,
25+
"validateLineBreaks": "LF",
26+
"validateQuoteMarks": "'"
27+
}

0 commit comments

Comments
 (0)