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.
65 lines
1.9 KiB
65 lines
1.9 KiB
{
|
|
"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
|
|
}
|
|
}
|
|
|