forked from donkeycode/ionic-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jscsrc
62 lines (54 loc) · 2.43 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
{
"disallowAnonymousFunctions": true,
"disallowDanglingUnderscores": true,
"disallowEmptyBlocks": true,
"disallowFunctionDeclarations": true,
"disallowImplicitTypeConversion": ["binary", "numeric", "string"],
"disallowKeywordsOnNewLine": ["catch", "else"],
"disallowKeywords": ["with"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleVarDecl": true,
"disallowNewlineBeforeBlockStatements": true,
// every operator but the comma (see https://github.com/jscs-dev/node-jscs/issues/845)
"disallowOperatorBeforeLineBreak": ["=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "&=", "|=", "^=", "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&", "|", "^", "&&", "||", "===", "==", ">=", "<=", "<", ">", "!=", "!=="],
"excludeFiles": [
"bower_components/**/*",
"node_modules/**/*"
],
// all keywords but "case", "catch", "else", "void", "return" and "function"
"requirePaddingNewlinesBeforeKeywords": ["do", "for", "if", "switch", "try", "while", "with", "typeof"],
"requireParenthesesAroundIIFE": true,
"requireSpaceAfterBinaryOperators": true,
// all keywords but function
"requireSpaceAfterKeywords": ["do", "for", "if", "switch", "case", "try", "catch", "void", "while", "with", "return", "typeof"],
// "requireSpaceAfterLineComment": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
// all keywords but "typeof", "void" and "function"
"requireSpaceBeforeKeywords": ["do", "for", "if", "switch", "case", "try", "catch", "while", "with", "return"],
"requireSpaceBeforeObjectValues": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInConditionalExpression": true,
"requireSpacesInFunctionDeclaration": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInFunction": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInsideObjectBrackets": "allButNested",
"validateIndentation": 4,
"validateLineBreaks": "LF",
"validateParameterSeparator": ", "
// "validateQuoteMarks": "'"
}