-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jscsrc
67 lines (56 loc) · 2.04 KB
/
.jscsrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// JSCS settings for fb-flo-brunch. Do not alter.
{
// Functions (decls, exprs, parameters, calls & arguments)
"disallowAnonymousFunctions": true,
"requireParenthesesAroundIIFE": true,
"disallowSpacesInCallExpression": true,
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"requireSpacesInFunctionDeclaration": {
"beforeOpeningCurlyBrace": true
},
"requireSpaceBetweenArguments": true,
"validateParameterSeparator": ", ",
// Expressions (unary/binary ops, type conversion, etc.)
"disallowImplicitTypeConversion": ["numeric", "boolean", "binary", "string"],
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceBeforeBinaryOperators": true,
"requireDotNotation": true,
"requireSpacesInConditionalExpression": true,
"disallowSpacesInsideParentheses": true,
// Literals
"disallowMultipleLineStrings": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowTrailingComma": true,
"requireSpaceBeforeObjectValues": true,
"requireSpacesInsideObjectBrackets": "allButNested",
// Control flow structures
"disallowEmptyBlocks": true,
"disallowNewlineBeforeBlockStatements": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": true,
"requireSpaceAfterKeywords": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeKeywords": true,
"requireSpacesInForStatement": true,
// Other whitespace and line feeds
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowTrailingWhitespace": true,
"requireLineFeedAtFileEnd": true,
"requireSpaceAfterLineComment": true,
// Miscellanea
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"safeContextKeyword": ["that", "self"]
}