.jscsrc 1.86 KB
Newer Older
Tom Käsler's avatar
Tom Käsler committed
1
{
2 3 4 5 6 7
  "disallowKeywords": [
    "with"
  ],
  "disallowKeywordsOnNewLine": [
    "else"
  ],
Tom Käsler's avatar
Tom Käsler committed
8 9 10 11
  "disallowMixedSpacesAndTabs": true,
  "disallowMultipleLineStrings": true,
  "disallowPaddingNewlinesInBlocks": true,
  "disallowSpaceAfterObjectKeys": true,
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
  "disallowSpaceAfterPrefixUnaryOperators": [
    "++",
    "--",
    "+",
    "-",
    "~",
    "!"
  ],
  "disallowSpaceBeforeBinaryOperators": [
    ","
  ],
  "disallowSpaceBeforePostfixUnaryOperators": [
    "++",
    "--"
  ],
Tom Käsler's avatar
Tom Käsler committed
27 28 29 30 31 32 33 34 35 36 37 38
  "disallowSpacesInCallExpression": true,
  "disallowSpacesInFunctionDeclaration": {
    "beforeOpeningRoundBrace": true
  },
  "disallowSpacesInNamedFunctionExpression": {
    "beforeOpeningRoundBrace": true
  },
  "disallowSpacesInsideArrayBrackets": true,
  "disallowSpacesInsideObjectBrackets": true,
  "disallowSpacesInsideParentheses": true,
  "disallowTrailingComma": true,
  "disallowTrailingWhitespace": true,
39
  "requireCamelCaseOrUpperCaseIdentifiers": false,
Tom Käsler's avatar
Tom Käsler committed
40 41 42 43 44
  "requireCapitalizedConstructors": true,
  "requireCommaBeforeLineBreak": true,
  "requireDotNotation": true,
  "requireLineFeedAtFileEnd": true,
  "requireSpaceAfterBinaryOperators": true,
45 46 47 48 49 50 51 52 53 54 55
  "requireSpaceAfterKeywords": [
    "if",
    "else",
    "for",
    "while",
    "do",
    "switch",
    "return",
    "try",
    "catch"
  ],
Tom Käsler's avatar
Tom Käsler committed
56 57
  "requireSpaceBeforeBinaryOperators": true,
  "requireSpaceBeforeBlockStatements": true,
58 59 60 61 62
  "requireSpaceBeforeKeywords": [
    "else",
    "while",
    "catch"
  ],
Tom Käsler's avatar
Tom Käsler committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
  "requireSpaceBeforeObjectValues": true,
  "requireSpacesInAnonymousFunctionExpression": {
    "beforeOpeningRoundBrace": true
  },
  "requireSpacesInConditionalExpression": {
    "afterTest": true,
    "beforeConsequent": true,
    "afterConsequent": true,
    "beforeAlternate": true
  },
  "requireSpacesInFunction": {
    "beforeOpeningCurlyBrace": true
  },
  "validateIndentation": "\t",
  "validateLineBreaks": "LF",
78
  "maxErrors": Infinity
Tom Käsler's avatar
Tom Käsler committed
79
}