-
Notifications
You must be signed in to change notification settings - Fork 16
/
.jscsrc
141 lines (140 loc) · 5.16 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
{
// "disallowAnonymousFunctions": false,
// "disallowCapitalizedComments": false,
// "disallowCommaBeforeLineBreak": false,
"disallowDanglingUnderscores": true,
"disallowEmptyBlocks": true,
"disallowFunctionDeclarations": true,
// "disallowImplicitTypeConversion": [],
// "disallowKeywordsOnNewLine": [],
"disallowKeywords": ["with"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
// "disallowMultipleVarDecl": false,
"disallowNewlineBeforeBlockStatements": true,
// "disallowOperatorBeforeLineBreak": false,
// "disallowPaddingNewlinesBeforeKeywords": false,
"disallowPaddingNewlinesInBlocks": true,
// "disallowPaddingNewLinesInObjects": false,
// "disallowQuotedKeysInObjects": false,
// "disallowSemicolons": false,
// "disallowSpaceAfterBinaryOperators": false,
// "disallowSpaceAfterKeywords": false,
// "disallowSpaceAfterLineComment": false,
// "disallowSpaceAfterObjectKeys": false,
"disallowSpaceAfterPrefixUnaryOperators": true,
// "disallowSpaceBeforeBinaryOperators": false,
// "disallowSpaceBeforeBlockStatements": false,
// "disallowSpaceBeforeKeywords": false,
// "disallowSpaceBeforeObjectValues": false,
"disallowSpaceBeforePostfixUnaryOperators": true,
// "disallowSpaceBetweenArguments": false,
// "disallowSpacesInAnonymousFunctionExpression": {
// "beforeOpeningRoundBrace": false,
// "beforeOpeningCurlyBrace": false
// },
"disallowSpacesInCallExpression": true,
// "disallowSpacesInConditionalExpression": {
// "afterTest": false,
// "beforeConsequent": false,
// "afterConsequent": false,
// "beforeAlternate": false
// },
// "disallowSpacesInForStatement": false,
// "disallowSpacesInFunctionDeclaration": {
// "beforeOpeningRoundBrace": false,
// "beforeOpeningCurlyBrace": false
// },
// "disallowSpacesInFunctionExpression": {
// "beforeOpeningRoundBrace": false,
// "beforeOpeningCurlyBrace": false
// },
// "disallowSpacesInFunctionExpression": {
// "beforeOpeningRoundBrace": true,
// "beforeOpeningCurlyBrace": true
// },
// "disallowSpacesInNamedFunctionExpression": {
// "beforeOpeningRoundBrace": false,
// "beforeOpeningCurlyBrace": false
// },
"disallowSpacesInsideArrayBrackets": "all",
"disallowSpacesInsideObjectBrackets": "all",
"disallowSpacesInsideParentheses": { "only": [ "{", "}" ] },
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
// "disallowYodaConditions": false,
"maximumLineLength": {
"value": 120,
"allowComments": false,
"allowRegex": true
},
// "requireAlignedObjectValues": false,
// "requireAnonymousFunctions": false,
"requireBlocksOnNewline": 2,
"requireCamelCaseOrUpperCaseIdentifiers": true,
// "requireCapitalizedComments": true,
"requireCapitalizedConstructors": true,
// "requireCommaBeforeLineBreak": false,
"requireCurlyBraces": true,
"requireDotNotation": "except_snake_case",
// "requireFunctionDeclarations": false,
"requireKeywordsOnNewLine": ["else", "catch", "case", "default", "finally"],
"requireLineBreakAfterVariableAssignment": true,
"requireLineFeedAtFileEnd": true,
"requireMultipleVarDecl": "onevar",
// "requireNewlineBeforeBlockStatements": false,
"requireOperatorBeforeLineBreak": true,
// "requirePaddingNewlinesBeforeKeywords": [],
// "requirePaddingNewlinesInBlocks": false,
// "requirePaddingNewlinesInBlocks": false,
"requireParenthesesAroundIIFE": true,
// "requireQuotedKeysInObjects": false,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceAfterKeywords": true,
"requireSpaceAfterLineComment": {
"allExcept": ["!", "#", "%", "^", "*", "=", "?"]
},
// "requireSpaceAfterObjectKeys": false,
// "requireSpaceAfterPrefixUnaryOperators": false,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
// "requireSpaceBeforeKeywords": false,
"requireSpaceBeforeObjectValues": true,
// "requireSpaceBeforePostfixUnaryOperators": false,
"requireSpaceBetweenArguments": true,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
//"requireSpacesInCallExpression": false,
"requireSpacesInConditionalExpression": {
"afterTest": true,
"beforeConsequent": true,
"afterConsequent": true,
"beforeAlternate": true
},
"requireSpacesInForStatement": true,
"requireSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"requireSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
// "requireSpacesInNamedFunctionExpression": {
// "beforeOpeningRoundBrace": true,
// "beforeOpeningCurlyBrace": true
// },
// "requireSpacesInsideArrayBrackets": false,
"requireSpacesInsideObjectBrackets": "allButNested",
// "requireSpacesInsideParentheses": false,
// "requireTrailingComma": false,
// "requireYodaConditions": false,
// "safeContextKeyword": [ ],
"validateIndentation": 4,
"validateLineBreaks": "LF",
"validateParameterSeparator": ", ",
"validateQuoteMarks": "'"
}