зеркало из https://github.com/twbs/bootlint.git
39 строки
1.6 KiB
Plaintext
39 строки
1.6 KiB
Plaintext
{
|
|
"disallowEmptyBlocks": true,
|
|
"disallowKeywords": ["with"],
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowMultipleLineStrings": true,
|
|
"disallowMultipleVarDecl": true,
|
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
|
"disallowSpacesInCallExpression": true,
|
|
"disallowSpacesInsideBrackets": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"requireCapitalizedConstructors": true,
|
|
"requireCommaBeforeLineBreak": true,
|
|
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"],
|
|
"requireLineFeedAtFileEnd": true,
|
|
"requireOperatorBeforeLineBreak": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
|
"requireParenthesesAroundIIFE": true,
|
|
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
|
|
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
|
"requireSpacesInConditionalExpression": true,
|
|
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
|
"requireSpacesInForStatement": true,
|
|
"validateIndentation": 4,
|
|
"validateLineBreaks": "LF",
|
|
"validateParameterSeparator": ", ",
|
|
"plugins": [
|
|
"jscs-jsdoc"
|
|
],
|
|
"jsDoc": {
|
|
"checkAnnotations": {
|
|
"preset": "jsdoc3"
|
|
},
|
|
"checkParamNames": true,
|
|
"checkRedundantParams": true,
|
|
"requireParamTypes": true
|
|
}
|
|
}
|