forked from fbrctr/fabricator
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.jscsrc
214 lines (160 loc) · 7.13 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"excludeFiles": ["node_modules/**", "bower_components/**"],
"disallowAnonymousFunctions": null,
"requireAnonymousFunctions": {"allExcept": ["declarations"]},
"disallowArrowFunctions": true,
"requireArrowFunctions": null,
"disallowCapitalizedComments": null,
"requireCapitalizedComments": null,
"disallowCommaBeforeLineBreak": null,
"requireCommaBeforeLineBreak": true,
"disallowCurlyBraces": null,
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"disallowFunctionDeclarations": null,
"requireFunctionDeclarations": true,
"disallowKeywordsOnNewLine": ["else"],
"requireKeywordsOnNewLine": null,
"disallowMultiLineTernary": null,
"requireMultiLineTernary": null,
"disallowMultipleVarDecl": {"allExcept": ["undefined", "require"]},
"requireMultipleVarDecl": null,
"disallowNamedUnassignedFunctions": null,
"requireNamedUnassignedFunctions": null,
"disallowNewlineBeforeBlockStatements": true,
"requireNewlineBeforeBlockStatements": null,
"disallowObjectKeysOnNewLine": null,
"requireObjectKeysOnNewLine": {"allExcept": ["sameLine"]},
"disallowOperatorBeforeLineBreak": true,
"requireOperatorBeforeLineBreak": null,
"disallowPaddingNewLinesAfterBlocks": null,
"requirePaddingNewLinesAfterBlocks": null,
"disallowPaddingNewLinesAfterUseStrict": null,
"requirePaddingNewLinesAfterUseStrict": true,
"disallowPaddingNewLinesBeforeExport": null,
"requirePaddingNewLinesBeforeExport": true,
"disallowPaddingNewlinesBeforeKeywords": null,
"requirePaddingNewlinesBeforeKeywords": null,
"disallowPaddingNewLinesBeforeLineComments": null,
"requirePaddingNewLinesBeforeLineComments": {"allExcept": "firstAfterCurly"},
"disallowPaddingNewlinesInBlocks": null,
"requirePaddingNewlinesInBlocks": null,
"disallowPaddingNewLinesInObjects": null,
"requirePaddingNewLinesInObjects": null,
"disallowParenthesesAroundArrowParam": null,
"requireParenthesesAroundArrowParam": null,
"disallowQuotedKeysInObjects": null,
"requireQuotedKeysInObjects": null,
"disallowSemicolons": null,
"requireSemicolons": true,
"disallowShorthandArrowFunctions": null,
"requireShorthandArrowFunctions": true,
"disallowSpaceAfterBinaryOperators": null,
"requireSpaceAfterBinaryOperators": true,
"disallowSpaceAfterComma": null,
"requireSpaceAfterComma": {"allExcept": ["trailing"]},
"disallowSpaceAfterKeywords": null,
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
"disallowSpaceAfterLineComment": null,
"requireSpaceAfterLineComment": {"allExcept": ["#", "="]},
"disallowSpaceAfterObjectKeys": true,
"requireSpaceAfterObjectKeys": null,
"disallowSpaceAfterPrefixUnaryOperators": true,
"requireSpaceAfterPrefixUnaryOperators": null,
"disallowSpaceBeforeBinaryOperators": null,
"requireSpaceBeforeBinaryOperators": true,
"disallowSpaceBeforeBlockStatements": null,
"requireSpaceBeforeBlockStatements": true,
"disallowSpaceBeforeComma": true,
"requireSpaceBeforeComma": null,
"disallowSpaceBeforeKeywords": null,
"requireSpaceBeforeKeywords": ["else", "while", "catch"],
"disallowSpaceBeforeObjectValues": null,
"requireSpaceBeforeObjectValues": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"requireSpaceBeforePostfixUnaryOperators": null,
"disallowSpaceBetweenArguments": null,
"requireSpaceBetweenArguments": true,
"disallowSpacesInAnonymousFunctionExpression": null,
"requireSpacesInAnonymousFunctionExpression": {"beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true},
"disallowSpacesInCallExpression": true,
"requireSpacesInCallExpression": null,
"disallowSpacesInConditionalExpression": null,
"requireSpacesInConditionalExpression": true,
"disallowSpacesInForStatement": null,
"requireSpacesInForStatement": true,
"disallowSpacesInFunctionDeclaration": null,
"requireSpacesInFunctionDeclaration": {"beforeOpeningCurlyBrace": true},
"disallowSpacesInFunctionExpression": null,
"requireSpacesInFunctionExpression": {"beforeOpeningCurlyBrace": true},
"disallowSpacesInFunction": null,
"requireSpacesInFunction": {"beforeOpeningCurlyBrace": true},
"disallowSpacesInGenerator": {"beforeStar": true},
"requireSpacesInGenerator": {"afterStar": true},
"disallowSpacesInNamedFunctionExpression": null,
"requireSpacesInNamedFunctionExpression": {"beforeOpeningCurlyBrace": true},
"disallowSpacesInsideArrayBrackets": true,
"requireSpacesInsideArrayBrackets": null,
"disallowSpacesInsideBrackets": true,
"requireSpacesInsideBrackets": null,
"disallowSpacesInsideObjectBrackets": true,
"requireSpacesInsideObjectBrackets": null,
"disallowSpacesInsideParentheses": true,
"requireSpacesInsideParentheses": null,
"disallowSpacesInsideParenthesizedExpression": true,
"requireSpacesInsideParenthesizedExpression": null,
"disallowTrailingComma": true,
"requireTrailingComma": null,
"disallowYodaConditions": true,
"requireYodaConditions": null,
"disallowDanglingUnderscores": true,
"disallowEmptyBlocks": true,
"disallowIdenticalDestructuringNames": null,
"disallowIdentifierNames": [],
"disallowImplicitTypeConversion": null,
"disallowKeywordsInComments": null,
"disallowKeywords": [],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleSpaces": true,
"disallowNestedTernaries": null,
"disallowNodeTypes": [],
"disallowNotOperatorsInConditionals": null,
"disallowSpaceBeforeSemicolon": true,
"disallowTabs": true,
"disallowTrailingWhitespace": null,
"disallowUnusedParams": null,
"disallowVar": null,
"jsDoc": null,
"maximumLineLength": {"value": 120, "allowRegex": true, "allowUrlComments": true},
"maximumNumberOfLines": null,
"requireAlignedMultilineParams": null,
"requireAlignedObjectValues": null,
"requireArrayDestructuring": null,
"requireBlocksOnNewline": null,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"requireDollarBeforejQueryAssignment": true,
"requireDotNotation": null,
"requireEarlyReturn": null,
"requireEnhancedObjectLiterals": null,
"requireLineBreakAfterVariableAssignment": true,
"requireLineFeedAtFileEnd": true,
"requireMatchingFunctionName": true,
"requireNumericLiterals": true,
"requireObjectDestructuring": null,
"requirePaddingNewLineAfterVariableDeclaration": null,
"requireParenthesesAroundIIFE": true,
"requireSpread": null,
"requireTemplateStrings": null,
"requireVarDeclFirst": null,
"safeContextKeyword": ["vm", "$ctrl"],
"validateAlignedFunctionParameters": null,
"validateCommentPosition": null,
"validateIndentation": 4,
"validateLineBreaks": null,
"validateNewlineAfterArrayElements": null,
"validateOrderInObjectKeys": null,
"validateParameterSeparator": ", ",
"validateQuoteMarks": false
}