You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.9 KiB
JSON
69 lines
1.9 KiB
JSON
{
|
|
"additionalRules": [],
|
|
|
|
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
|
|
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
|
|
|
|
"disallowSpaceAfterKeywords": [],
|
|
|
|
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
|
|
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
|
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
|
|
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
|
|
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
|
|
|
|
"requireSpaceBetweenArguments": true,
|
|
|
|
"disallowSpacesInsideParentheses": true,
|
|
|
|
"disallowSpacesInsideArrayBrackets": true,
|
|
|
|
"disallowQuotedKeysInObjects": "allButReserved",
|
|
|
|
"disallowSpaceAfterObjectKeys": true,
|
|
|
|
"requireCommaBeforeLineBreak": true,
|
|
|
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
|
"requireSpaceAfterPrefixUnaryOperators": [],
|
|
|
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
|
"requireSpaceBeforePostfixUnaryOperators": [],
|
|
|
|
"disallowSpaceBeforeBinaryOperators": [],
|
|
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
|
|
|
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
|
"disallowSpaceAfterBinaryOperators": [],
|
|
|
|
"disallowImplicitTypeConversion": ["binary", "string"],
|
|
|
|
"disallowKeywords": ["with", "eval"],
|
|
|
|
"requireKeywordsOnNewLine": [],
|
|
"disallowKeywordsOnNewLine": ["else"],
|
|
|
|
"requireLineFeedAtFileEnd": true,
|
|
|
|
"disallowTrailingWhitespace": true,
|
|
|
|
"disallowTrailingComma": true,
|
|
|
|
"excludeFiles": ["node_modules/**", "vendor/**"],
|
|
|
|
"disallowMultipleLineStrings": true,
|
|
|
|
"requireDotNotation": true,
|
|
|
|
"requireParenthesesAroundIIFE": true,
|
|
|
|
"validateLineBreaks": "LF",
|
|
|
|
"validateQuoteMarks": {
|
|
"escape": true,
|
|
"mark": "'"
|
|
}
|
|
}
|
|
|