Skip to content

Commit 29a00c4

Browse files
committed
chore(jscs): add JSCS to work toward syntax parity with angular
1 parent 4366bd5 commit 29a00c4

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.jscs.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"excludeFiles": ["src/ngLocale/**"],
3+
"disallowKeywords": ["with"],
4+
"disallowMixedSpacesAndTabs": true,
5+
"disallowMultipleLineStrings": true,
6+
"disallowNewlineBeforeBlockStatements": true,
7+
"disallowSpaceAfterObjectKeys": true,
8+
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
9+
"disallowSpaceBeforeBinaryOperators": [","],
10+
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
11+
"disallowSpacesInAnonymousFunctionExpression": {
12+
"beforeOpeningRoundBrace": true
13+
},
14+
"disallowSpacesInFunctionDeclaration": {
15+
"beforeOpeningRoundBrace": true
16+
},
17+
"disallowSpacesInNamedFunctionExpression": {
18+
"beforeOpeningRoundBrace": true
19+
},
20+
"disallowSpacesInsideArrayBrackets": true,
21+
"disallowSpacesInsideParentheses": true,
22+
"disallowTrailingComma": true,
23+
"disallowTrailingWhitespace": true,
24+
"requireCommaBeforeLineBreak": true,
25+
"requireLineFeedAtFileEnd": true,
26+
"requireSpaceAfterBinaryOperators": ["?", ":", "+", "-", "/", "*", "%", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "&&", "||"],
27+
"requireSpaceBeforeBinaryOperators": ["?", ":", "+", "-", "/", "*", "%", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "&&", "||"],
28+
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
29+
"requireSpaceBeforeBlockStatements": true,
30+
"requireSpacesInConditionalExpression": {
31+
"afterTest": true,
32+
"beforeConsequent": true,
33+
"afterConsequent": true,
34+
"beforeAlternate": true
35+
},
36+
"requireSpacesInFunction": {
37+
"beforeOpeningCurlyBrace": true
38+
},
39+
"validateLineBreaks": "LF",
40+
"validateParameterSeparator": ", "
41+
}

0 commit comments

Comments
 (0)