forked from fullcalendar/fullcalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jscs.js
22 lines (21 loc) · 1016 Bytes
/
.jscs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
requireCurlyBraces: [ 'if', 'else', 'for', 'while', 'do', 'try', 'catch' ],
requireSpacesInFunctionExpression: { beforeOpeningCurlyBrace: true },
disallowSpacesInFunctionExpression: { beforeOpeningRoundBrace: true },
//disallowSpacesInsideParentheses: true, // can't handle `something( //`
requireSpacesInsideObjectBrackets: 'all',
disallowQuotedKeysInObjects: 'allButReserved',
disallowSpaceAfterObjectKeys: true,
requireCommaBeforeLineBreak: true,
requireOperatorBeforeLineBreak: [ '?', '+', '-', '/', '*', '=', '==', '===', '!=', '!==', '>', '>=', '<', '<=' ],
requireSpacesInConditionalExpression: true,
requireSpaceAfterComma: true,
disallowSpaceBeforeComma: true,
requireSpaceBeforeDestructuredValues: true,
disallowSpaceAfterPrefixUnaryOperators: [ '++', '--', '+', '-', '~', '!' ],
disallowSpaceBeforePostfixUnaryOperators: [ '++', '--' ],
disallowKeywords: [ 'with' ],
disallowMultipleLineStrings: true,
requireDotNotation: true,
requireParenthesesAroundIIFE: true
};