.jscsrc 2.57 KB
{
  "excludeFiles": [],
  "fileExtensions": [
    ".js"
  ],
  "requireCurlyBraces": [
    "if",
    "else",
    "for",
    "while",
    "do",
    "try",
    "catch",
    "case",
    "default"
  ],
  "requireSpaceAfterKeywords": [
    "do",
    "for",
    "if",
    "else",
    "switch",
    "case",
    "try",
    "catch",
    "void",
    "while",
    "with",
    "return",
    "typeof",
    "function"
  ],
  "requireSpaceBeforeBlockStatements": true,
  "requireParenthesesAroundIIFE": true,
  "requireSpacesInConditionalExpression": {
    "afterTest": true,
    "beforeConsequent": true,
    "afterConsequent": true,
    "beforeAlternate": true
  },
  "requireSpacesInAnonymousFunctionExpression": {
    "beforeOpeningRoundBrace": true,
    "beforeOpeningCurlyBrace": true
  },
  "requireSpacesInNamedFunctionExpression": {
    "beforeOpeningCurlyBrace": true
  },
  "disallowMultipleVarDecl": true,
  "requireBlocksOnNewline": true,
  "disallowEmptyBlocks": true,
  "disallowSpacesInsideParentheses": true,
  "requireSpacesInsideObjectBrackets": "all",
  "requireSpacesInsideArrayBrackets": {
    "allExcept": [ "[", "]", "{", "}" ]
  },
  "disallowQuotedKeysInObjects": "allButReserved",
  "disallowSpaceAfterObjectKeys": false,
  "requireSpaceBeforeObjectValues": true,
  "requireCommaBeforeLineBreak": true,
  "disallowSpaceAfterPrefixUnaryOperators": [
    "++",
    "--"
  ],
  "requireSpaceAfterPrefixUnaryOperators": [
    "+",
    "~",
    "!"
  ],
  "disallowSpaceBeforePostfixUnaryOperators": [
    "++",
    "--"
  ],
  "requireSpaceBeforeBinaryOperators": [
    "=",
    "+",
    "-",
    "/",
    "*",
    "==",
    "===",
    "!=",
    "!=="
  ],
  "requireSpaceAfterBinaryOperators": [
    "=",
    ",",
    "+",
    "-",
    "/",
    "*",
    "==",
    "===",
    "!=",
    "!=="
  ],
  "disallowImplicitTypeConversion": [
    "string"
  ],
  "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
  "disallowKeywords": [
    "with"
  ],
  "disallowMultipleLineStrings": true,
  "disallowMultipleLineBreaks": false,
  "disallowMixedSpacesAndTabs": true,
  "disallowTrailingWhitespace": true,
  "disallowTrailingComma": true,
  "requireLineFeedAtFileEnd": true,
  "requireCapitalizedConstructors": true,
  "requireDotNotation": true,
  "maximumLineLength": 120,
  "disallowYodaConditions": true,
  "requireSpaceAfterLineComment": true,
  "requireAnonymousFunctions": {
    "allExcept": [
      "declarations"
    ]
  },
  "disallowNewlineBeforeBlockStatements": true,
  "validateQuoteMarks": {
    "mark": "'",
    "escape": true
  },
  "validateIndentation": 2,
  "safeContextKeyword": [
    "_this"
  ]
}