.jscsrc 1.2 KB

123456789101112131415161718192021222324252627282930
  1. {
  2. "requireCurlyBraces": ["do", "switch", "return", "try", "catch"],
  3. "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
  4. "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
  5. "requireSpaceAfterKeywords": ["else", "do", "switch", "return", "try"],
  6. "disallowSpaceAfterKeywords": ["if", "catch", "for", "while"],
  7. "disallowSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
  8. "requireCapitalizedConstructors": true,
  9. "requireCommaBeforeLineBreak": true,
  10. "requireDotNotation": true,
  11. "requireParenthesesAroundIIFE": true,
  12. "disallowEmptyBlocks": true,
  13. "disallowSpaceAfterPrefixUnaryOperators": ["!"],
  14. "disallowSpaceBeforeBinaryOperators": [","],
  15. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  16. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  17. "disallowKeywords": ["with"],
  18. "disallowMultipleLineStrings": true,
  19. "disallowTrailingWhitespace": true,
  20. "validateIndentation": "\t",
  21. "validateLineBreaks": "LF",
  22. "validateQuoteMarks": "\"",
  23. "safeContextKeyword": "_this"
  24. }