-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jscsrc
33 lines (28 loc) · 1 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
{
"disallowKeywords": ["with"],
"disallowQuotedKeysInObjects": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpacesInFunction": {"beforeOpeningRoundBrace": true},
// Allow multiple variables to be declared in the same statement only if they
// are all undefined, e.g., `var x, y, z;`.
"disallowMultipleVarDecl": "exceptUndefined",
"excludeFiles": ["dist/*", "**/node_modules/**", "**/third_party/**"],
"maximumLineLength": {
"value": 100,
"allowUrlComments": true
},
// For semantic actions, allow object properties to have underscores.
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
"requireBlocksOnNewline": 1,
"requireCapitalizedConstructors": true,
"requireParenthesesAroundIIFE": true,
"requireSpaceAfterLineComment": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInFunction": {"beforeOpeningCurlyBrace": true},
"validateQuoteMarks": {
"mark": "'",
"escape": true
},
"validateIndentation": 2,
"validateLineBreaks": "LF"
}