зеркало из https://github.com/twbs/bootlint.git
26 строки
1.3 KiB
Plaintext
26 строки
1.3 KiB
Plaintext
|
{
|
||
|
"disallowEmptyBlocks": true,
|
||
|
"disallowKeywords": ["with"],
|
||
|
"disallowLeftStickedOperators": ["?", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
||
|
"disallowMixedSpacesAndTabs": true,
|
||
|
"disallowMultipleLineStrings": true,
|
||
|
"disallowMultipleVarDecl": true,
|
||
|
"disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
||
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
||
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
||
|
"disallowTrailingWhitespace": true,
|
||
|
"requireCapitalizedConstructors": true,
|
||
|
"requireCommaBeforeLineBreak": true,
|
||
|
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"],
|
||
|
"requireLeftStickedOperators": [","],
|
||
|
"requireLineFeedAtFileEnd": true,
|
||
|
"requireParenthesesAroundIIFE": true,
|
||
|
"requireRightStickedOperators": ["!"],
|
||
|
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
||
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
|
||
|
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
||
|
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
||
|
"validateIndentation": 2,
|
||
|
"validateLineBreaks": "LF"
|
||
|
}
|