forked from ljagis/leaflet-measure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jscsrc
46 lines (46 loc) · 1.85 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
{
"maxErrors": 50,
"requireCurlyBraces": [ "if", "else", "for", "while", "do" ],
"disallowEmptyBlocks": true,
"disallowImplicitTypeConversion": ["numeric", "boolean", "binary", "string"],
"disallowKeywordsOnNewLine": ["else"],
"requireSpaceAfterKeywords": true,
"requireSpaceBeforeBlockStatements": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpacesInCallExpression": true,
"disallowSpacesInsideArrayBrackets": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInFunction": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowMultipleLineStrings": true,
"disallowMultipleLineBreaks": true,
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"requireCommaBeforeLineBreak": true,
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
"disallowTrailingComma": true,
"requireCapitalizedConstructors": true,
"requireDotNotation": true,
"validateQuoteMarks": "'",
"disallowKeywords": ["with"],
"disallowKeywordsOnNewLine": ["else"],
"requirePaddingNewLinesInObjects": true,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpaceAfterObjectKeys": true,
"requireSpaceBeforeObjectValues": true,
"disallowSpaceAfterPrefixUnaryOperators": [",", "!"],
"disallowSpacesInsideParentheses": true,
"disallowYodaConditions": true,
"requireBlocksOnNewline": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInConditionalExpression": true,
"validateIndentation": 2
}