crunchy/.jscsrc
2015-01-22 20:31:38 +01:00

61 lines
2.3 KiB
Plaintext

{
"disallowEmptyBlocks": true,
"disallowImplicitTypeConversion": ["binary", "boolean", "numeric", "string"],
"disallowKeywords": ["delete", "with"],
"disallowKeywordsOnNewLine": ["catch", "else", "finally"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleVarDecl": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowPaddingNewlinesInBlocks": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"disallowSpacesInCallExpression": true,
"disallowSpacesInFunction": {"beforeOpeningRoundBrace": true},
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"disallowYodaConditions": true,
"jsDoc": {
"checkAnnotations": "closurecompiler",
"checkParamNames": true,
"checkRedundantAccess": true,
"checkRedundantParams": true,
"checkReturnTypes": true,
"checkTypes": "strictNativeCase",
"enforceExistence": true,
"leadingUnderscoreAccess": true,
"requireParamTypes": true,
"requireReturnTypes": true
},
"maximumLineLength": 80,
"plugins": ["jscs-jsdoc"],
"requireBlocksOnNewline": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireDotNotation": true,
"requireFunctionDeclarations": true,
"requireLineFeedAtFileEnd": true,
"requireOperatorBeforeLineBreak": true,
"requireParenthesesAroundIIFE": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceAfterKeywords": ["case", "catch", "do", "else", "for", "if", "return", "switch", "try", "typeof", "void", "while", "with"],
"requireSpaceAfterLineComment": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeObjectValues": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInFunction": {"beforeOpeningCurlyBrace": true},
"safeContextKeyword": ["that"],
"validateIndentation": 2,
"validateParameterSeparator": ", ",
"validateQuoteMarks": "'",
"validateLineBreaks": "LF"
}