You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.9 KiB
66 lines
1.9 KiB
7 years ago
|
{
|
||
|
"requireCurlyBraces": [
|
||
|
"if",
|
||
|
"else",
|
||
|
"for",
|
||
|
"while",
|
||
|
"do",
|
||
|
"try",
|
||
|
"catch"
|
||
|
],
|
||
|
"requireSpaceAfterKeywords": [
|
||
|
"if",
|
||
|
"else",
|
||
|
"for",
|
||
|
"while",
|
||
|
"do",
|
||
|
"switch",
|
||
|
"return",
|
||
|
"try",
|
||
|
"catch"
|
||
|
],
|
||
|
"requireSpaceBeforeBlockStatements": true,
|
||
|
"requireParenthesesAroundIIFE": true,
|
||
|
"requireSpacesInConditionalExpression": true,
|
||
|
"requireSpacesInAnonymousFunctionExpression": {
|
||
|
"beforeOpeningRoundBrace": true,
|
||
|
"beforeOpeningCurlyBrace": true
|
||
|
},
|
||
|
"requireSpacesInNamedFunctionExpression": {
|
||
|
"beforeOpeningCurlyBrace": true
|
||
|
},
|
||
|
"disallowSpacesInNamedFunctionExpression": {
|
||
|
"beforeOpeningRoundBrace": true
|
||
|
},
|
||
|
"requireBlocksOnNewline": true,
|
||
|
"disallowPaddingNewlinesInBlocks": true,
|
||
|
"disallowEmptyBlocks": true,
|
||
|
"disallowSpacesInsideObjectBrackets": true,
|
||
|
"disallowSpacesInsideArrayBrackets": true,
|
||
|
"disallowSpacesInsideParentheses": true,
|
||
|
"requireCommaBeforeLineBreak": true,
|
||
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
||
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
||
|
"requireSpaceBeforeBinaryOperators": [
|
||
|
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
|
||
|
"&=", "|=", "^=",
|
||
|
|
||
|
"+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
|
||
|
"|", "^", "&&", "||", "===", "==", ">=",
|
||
|
"<=", "<", ">", "!=", "!=="
|
||
|
],
|
||
|
"requireSpaceAfterBinaryOperators": true,
|
||
|
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
|
||
|
"disallowKeywords": ["with"],
|
||
|
"disallowMultipleLineStrings": true,
|
||
|
"validateIndentation": 4,
|
||
|
"disallowTrailingWhitespace": true,
|
||
|
"disallowTrailingComma": true,
|
||
|
"requireLineFeedAtFileEnd": true,
|
||
|
"requireCapitalizedConstructors": true,
|
||
|
"validateQuoteMarks": {
|
||
|
"mark": "'",
|
||
|
"escape": true
|
||
|
}
|
||
|
}
|