.jscsrc 3.07 KB
{
    "disallowDanglingUnderscores": true,
    "disallowEmptyBlocks": true,
    "disallowKeywordsInComments": ["TODO", "FIXME"],
    "disallowKeywordsOnNewLine": ["else", "else if"],
    "disallowKeywords": ["with", "eval"],
    "disallowMixedSpacesAndTabs": true,
    "disallowMultipleLineStrings": true,
    "disallowMultipleSpaces": {"allowEOLComments": true},
    "disallowNamedUnassignedFunctions": true,
    "disallowNewlineBeforeBlockStatements": true,
    "disallowOperatorBeforeLineBreak": ["."],
    "disallowQuotedKeysInObjects": true,
    "disallowSpaceAfterObjectKeys": true,
    "disallowSpaceAfterPrefixUnaryOperators": true,
    "disallowSpaceBeforeComma": true,
    "disallowSpaceBeforePostfixUnaryOperators": true,
    "disallowSpaceBeforeSemicolon": true,
    "disallowSpacesInCallExpression": true,
    "disallowSpacesInFunctionDeclaration": {
        "beforeOpeningRoundBrace": true
    },
    "disallowSpacesInsideArrayBrackets": true,
    "disallowSpacesInsideObjectBrackets": true,
    "disallowSpacesInsideParentheses": true,
    "disallowTrailingComma": true,
    "disallowTrailingWhitespace": true,
    "maximumLineLength": 120,
    "requireAnonymousFunctions": {
        "allExcept": ["declarations"]
    },
    "requireBlocksOnNewline": {
        "includeComments": true
    },
    "requireCamelCaseOrUpperCaseIdentifiers": true,
    "requireCapitalizedConstructors": true,
    "requireCommaBeforeLineBreak": true,
    "requireCurlyBraces": true,
    "requireDollarBeforejQueryAssignment": true,
    "requireDotNotation": true,
    "requireLineBreakAfterVariableAssignment": true,
    "requireObjectKeysOnNewLine": true,
    "requireOperatorBeforeLineBreak": true,
    "requirePaddingNewLineAfterVariableDeclaration": true,
    "requirePaddingNewLinesBeforeLineComments": true,
    "requirePaddingNewLinesInObjects": true,
    "requireParenthesesAroundIIFE": true,
    "requireSpaceAfterBinaryOperators": true,
    "requireSpaceAfterKeywords": [
        "do",
        "for",
        "if",
        "else",
        "switch",
        "case",
        "try",
        "catch",
        "void",
        "while",
        "with",
        "return",
        "typeof",
        "function"
    ],
    "requireSpaceBeforeBinaryOperators": true,
    "requireSpaceBeforeBlockStatements": 1,
    "requireSpaceBeforeKeywords": [
        "else",
        "while",
        "catch"
    ],
    "requireSpaceBeforeObjectValues": true,
    "requireSpaceBetweenArguments": true,
    "requireSpacesInAnonymousFunctionExpression": {
        "beforeOpeningCurlyBrace": true
    },
    "requireSpacesInConditionalExpression": {
        "afterTest": true,
        "beforeConsequent": true,
        "afterConsequent": true,
        "beforeAlternate": true
    },
    "requireSpacesInForStatement": true,
    "requireSpacesInFunction": {
        "beforeOpeningCurlyBrace": true
    },
    "requireVarDeclFirst": true,
    "validateAlignedFunctionParameters": {
      "lineBreakAfterOpeningBrace": true,
      "lineBreakBeforeClosingBrace": true
    },
    "validateIndentation": 4,
    "validateParameterSeparator": ", ",

    "maxErrors": 20
}