mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
5ef9383f53
Be more consistent across the whole codebase. Also, make use of JSHint's 2.5.1 `extends` and `qunit` options. This way we set our basis options in js/.jshintrc and override the rest.
35 lines
1.9 KiB
Text
35 lines
1.9 KiB
Text
{
|
|
"disallowEmptyBlocks": true,
|
|
"disallowKeywords": ["with"],
|
|
"disallowLeftStickedOperators": ["?", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowMultipleLineStrings": true,
|
|
"disallowMultipleVarDecl": true,
|
|
"disallowQuotedKeysInObjects": "allButReserved",
|
|
"disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
|
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
|
|
"disallowSpacesInsideArrayBrackets": true,
|
|
"disallowSpacesInsideParentheses": true,
|
|
"disallowTrailingComma": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
|
"requireCapitalizedConstructors": true,
|
|
"requireCommaBeforeLineBreak": true,
|
|
"requireDotNotation": true,
|
|
"requireLeftStickedOperators": [","],
|
|
"requireLineFeedAtFileEnd": true,
|
|
"requireRightStickedOperators": ["!"],
|
|
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
|
|
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
|
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true, "beforeOpeningRoundBrace": true },
|
|
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
|
|
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
|
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
|
"requireSpacesInsideObjectBrackets": "allButNested",
|
|
"validateIndentation": 2,
|
|
"validateLineBreaks": "LF",
|
|
"validateQuoteMarks": "'"
|
|
}
|