.jscsrc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "disallowKeywordsOnNewLine": [ "else" ],
  3. "disallowMixedSpacesAndTabs": true,
  4. "disallowMultipleLineStrings": true,
  5. "disallowMultipleVarDecl": true,
  6. "disallowNewlineBeforeBlockStatements": true,
  7. "disallowQuotedKeysInObjects": true,
  8. "disallowSpaceAfterObjectKeys": true,
  9. "disallowSpaceAfterPrefixUnaryOperators": true,
  10. "disallowSpaceBeforePostfixUnaryOperators": true,
  11. "disallowSpacesInCallExpression": true,
  12. "disallowTrailingComma": true,
  13. "disallowTrailingWhitespace": true,
  14. "disallowYodaConditions": true,
  15. "requireCommaBeforeLineBreak": true,
  16. "requireOperatorBeforeLineBreak": true,
  17. "requireSpaceAfterBinaryOperators": true,
  18. "requireSpaceAfterKeywords": [ "if", "for", "while", "else", "try", "catch" ],
  19. "requireSpaceAfterLineComment": true,
  20. "requireSpaceBeforeBinaryOperators": true,
  21. "requireSpaceBeforeBlockStatements": true,
  22. "requireSpaceBeforeKeywords": [ "else", "catch" ],
  23. "requireSpaceBeforeObjectValues": true,
  24. "requireSpaceBetweenArguments": true,
  25. "requireSpacesInAnonymousFunctionExpression": {
  26. "beforeOpeningCurlyBrace": true
  27. },
  28. "requireSpacesInFunctionDeclaration": {
  29. "beforeOpeningCurlyBrace": true
  30. },
  31. "requireSpacesInFunctionExpression": {
  32. "beforeOpeningCurlyBrace": true
  33. },
  34. "requireSpacesInConditionalExpression": true,
  35. "requireSpacesInForStatement": true,
  36. "requireSpacesInsideArrayBrackets": "all",
  37. "requireSpacesInsideObjectBrackets": "all",
  38. "requireDotNotation": true,
  39. "maximumLineLength": 80,
  40. "validateIndentation": 2,
  41. "validateLineBreaks": "LF",
  42. "validateParameterSeparator": ", ",
  43. "validateQuoteMarks": "'"
  44. }