.jscsrc 3.06 KB
{
    "disallowEmptyBlocks": true,
    "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,
    "disallowSpacesInFunction": {
        "beforeOpeningRoundBrace": true
    },
    "disallowSpacesInsideArrayBrackets": true,
    "disallowSpacesInsideObjectBrackets": true,
    "disallowSpacesInsideParentheses": true,
    "disallowTrailingComma": true,
    "disallowTrailingWhitespace": true,
    "maximumLineLength": 120,
    "requireAnonymousFunctions": {
        "allExcept": ["declarations"]
    },
    "requireBlocksOnNewline": {
        "includeComments": true
    },
    "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
    "requireCapitalizedConstructors": true,
    "requireCommaBeforeLineBreak": true,
    "requireCurlyBraces": [
        "if",
        "else",
        "for",
        "while",
        "do",
        "try",
        "catch"
    ],
    "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"
    ],
    "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
}