Projekt

Obecné

Profil

Stáhnout (4.04 KB) Statistiky
| Větev: | Revize:
1 3a515b92 cagy
{
2
	"es3": true,
3
4
	"additionalRules": [],
5
6
	"requireSemicolons": true,
7
8
	"disallowMultipleSpaces": true,
9
10
	"disallowIdentifierNames": [],
11
12
	"requireCurlyBraces": {
13
		"allExcept": [],
14
		"keywords": ["if", "else", "for", "while", "do", "try", "catch"]
15
	},
16
17
	"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
18
19
	"disallowSpaceAfterKeywords": [],
20
21
	"disallowSpaceBeforeComma": true,
22
	"disallowSpaceAfterComma": false,
23
	"disallowSpaceBeforeSemicolon": true,
24
25
	"disallowNodeTypes": [
26
		"DebuggerStatement",
27
		"ForInStatement",
28
		"LabeledStatement",
29
		"SwitchCase",
30
		"SwitchStatement",
31
		"WithStatement"
32
	],
33
34
	"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
35
36
	"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
37
	"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
38
	"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
39
	"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
40
	"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
41
42
	"requireSpaceBetweenArguments": true,
43
44
	"disallowSpacesInsideParentheses": true,
45
46
	"disallowSpacesInsideArrayBrackets": true,
47
48
	"disallowQuotedKeysInObjects": { "allExcept": ["reserved"] },
49
50
	"disallowSpaceAfterObjectKeys": true,
51
52
	"requireCommaBeforeLineBreak": true,
53
54
	"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
55
	"requireSpaceAfterPrefixUnaryOperators": [],
56
57
	"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
58
	"requireSpaceBeforePostfixUnaryOperators": [],
59
60
	"disallowSpaceBeforeBinaryOperators": [],
61
	"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
62
63
	"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
64
	"disallowSpaceAfterBinaryOperators": [],
65
66
	"disallowImplicitTypeConversion": ["binary", "string"],
67
68
	"disallowKeywords": ["with", "eval"],
69
70
	"requireKeywordsOnNewLine": [],
71
	"disallowKeywordsOnNewLine": ["else"],
72
73
	"requireLineFeedAtFileEnd": true,
74
75
	"disallowTrailingWhitespace": true,
76
77
	"disallowTrailingComma": true,
78
79
	"excludeFiles": ["node_modules/**", "vendor/**"],
80
81
	"disallowMultipleLineStrings": true,
82
83
	"requireDotNotation": { "allExcept": ["keywords"] },
84
85
	"requireParenthesesAroundIIFE": true,
86
87
	"validateLineBreaks": "LF",
88
89
	"validateQuoteMarks": {
90
		"escape": true,
91
		"mark": "'"
92
	},
93
94
	"disallowOperatorBeforeLineBreak": [],
95
96
	"requireSpaceBeforeKeywords": [
97
		"do",
98
		"for",
99
		"if",
100
		"else",
101
		"switch",
102
		"case",
103
		"try",
104
		"catch",
105
		"finally",
106
		"while",
107
		"with",
108
		"return"
109
	],
110
111
	"validateAlignedFunctionParameters": {
112
		"lineBreakAfterOpeningBraces": true,
113
		"lineBreakBeforeClosingBraces": true
114
	},
115
116
	"requirePaddingNewLinesBeforeExport": true,
117
118
	"validateNewlineAfterArrayElements": {
119
		"maximum": 8
120
	},
121
122
	"requirePaddingNewLinesAfterUseStrict": true,
123
124
	"disallowArrowFunctions": true,
125
126
	"disallowMultiLineTernary": true,
127
128
	"validateOrderInObjectKeys": "asc-insensitive",
129
130
	"disallowIdenticalDestructuringNames": true,
131
132
	"disallowNestedTernaries": { "maxLevel": 1 },
133
134
	"requireSpaceAfterComma": { "allExcept": ["trailing"] },
135
	"requireAlignedMultilineParams": false,
136
137
	"requireSpacesInGenerator": {
138
		"afterStar": true
139
	},
140
141
	"disallowSpacesInGenerator": {
142
		"beforeStar": true
143
	},
144
145
	"disallowVar": false,
146
147
	"requireArrayDestructuring": false,
148
149
	"requireEnhancedObjectLiterals": false,
150
151
	"requireObjectDestructuring": false,
152
153
	"requireEarlyReturn": false,
154
155
	"requireCapitalizedConstructorsNew": {
156
		"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
157
	},
158
159
	"requireImportAlphabetized": false,
160
161
    "requireSpaceBeforeObjectValues": true,
162
    "requireSpaceBeforeDestructuredValues": true,
163
164
	"disallowSpacesInsideTemplateStringPlaceholders": true,
165
166
    "disallowArrayDestructuringReturn": false,
167
168
    "requireNewlineBeforeSingleStatementsInIf": false,
169
170
	"disallowUnusedVariables": true,
171
172
	"requireSpacesInsideImportedObjectBraces": true,
173
174
	"requireUseStrict": true
175
}