74 lines
2.3 KiB
Plaintext
74 lines
2.3 KiB
Plaintext
{
|
|
"requireCurlyBraces": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSpaceAfterKeywords": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"switch",
|
|
"return",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSemicolons": true,
|
|
"requireSpacesInForStatement": true,
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"requireParenthesesAroundIIFE": true,
|
|
"requireSpacesInConditionalExpression": true,
|
|
"requireSpacesInAnonymousFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpacesInNamedFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireBlocksOnNewline": true,
|
|
"disallowEmptyBlocks": false,
|
|
"disallowSpacesInsideObjectBrackets": true,
|
|
"disallowSpacesInsideArrayBrackets": true,
|
|
"disallowSpacesInsideParentheses": true,
|
|
"requireSpaceAfterComma": true,
|
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
|
"requireSpaceBeforeBinaryOperators": [
|
|
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
|
|
"&=", "|=", "^=", "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
|
|
"|", "^", "&&", "||", "===", "==", ">=", "<=", "<", ">", "!=", "!=="
|
|
],
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
"requireCamelCaseOrUpperCaseIdentifiers": {
|
|
"ignoreProperties": true
|
|
},
|
|
"disallowKeywords": ["with"],
|
|
"disallowMultipleLineStrings": true,
|
|
"validateLineBreaks": "LF",
|
|
"validateIndentation": 2,
|
|
"disallowTrailingComma": true,
|
|
"requireLineFeedAtFileEnd": true,
|
|
"validateQuoteMarks": {
|
|
"mark": "'",
|
|
"escape": true
|
|
},
|
|
"requireCapitalizedComments": true,
|
|
"requireSpaceAfterLineComment": { "allExcept": ["//////////////////////////////////////////////////"] },
|
|
"jsDoc": {
|
|
"checkAnnotations": true,
|
|
"checkRedundantAccess": true,
|
|
"checkTypes": "capitalizedNativeCase",
|
|
"requireNewlineAfterDescription": true,
|
|
"checkParamExistence": true,
|
|
"checkParamNames": true,
|
|
"requireParamTypes": true,
|
|
"checkRedundantParams": true,
|
|
"requireReturnTypes": true
|
|
}
|
|
}
|