.jscsrc 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "disallowImplicitTypeConversion": ["numeric", "boolean", "binary", "string"],
  3. "disallowKeywords": ["with"],
  4. "disallowMixedSpacesAndTabs": true,
  5. "disallowMultipleLineBreaks": true,
  6. "disallowOperatorBeforeLineBreak": ["."],
  7. "disallowSpaceAfterKeywords": [
  8. "void"//,
  9. //"typeof"
  10. ],
  11. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~"],
  12. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  13. "disallowSpacesInCallExpression": true,
  14. "disallowSpacesInNamedFunctionExpression": {
  15. "beforeOpeningRoundBrace": true},
  16. "disallowTrailingComma": true,
  17. "disallowTrailingWhitespace": true,
  18. "maximumLineLength": 160,
  19. "requireCommaBeforeLineBreak": true,
  20. "requireCurlyBraces": [ "if",
  21. "else",
  22. "for",
  23. "while",
  24. "do",
  25. "try",
  26. "catch"],
  27. "requireOperatorBeforeLineBreak": [ "?",
  28. "=",
  29. "+",
  30. "-",
  31. "/",
  32. "*",
  33. "==",
  34. "===",
  35. "!=",
  36. "!==",
  37. ">",
  38. ">=",
  39. "<",
  40. "<="],
  41. "requireSpaceAfterBinaryOperators": true,
  42. "requireSpaceAfterKeywords": [
  43. "else",
  44. "case",
  45. "try",
  46. "typeof",
  47. "return",
  48. "if",
  49. "for",
  50. "while",
  51. "do"
  52. ],
  53. "requireSpaceBeforeBlockStatements": true,
  54. "requireSpaceBeforeBinaryOperators": [
  55. "=",
  56. "+",
  57. "-",
  58. "/",
  59. "*",
  60. "==",
  61. "===",
  62. "!=",
  63. "!=="
  64. ],
  65. "requireSpaceBeforeBlockStatements": true,
  66. "requireSpaceBetweenArguments": true,
  67. "requireSpacesInConditionalExpression": true,
  68. "requireSpacesInForStatement": true,
  69. "requireSpacesInNamedFunctionExpression": {
  70. "beforeOpeningCurlyBrace": true
  71. },
  72. "validateIndentation": 4
  73. }