.jscsrc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "excludeFiles": [
  3. "src/core/asyncintro.js",
  4. "src/core/intro.js",
  5. "src/core/outro.js",
  6. "src/core/suboutro.js",
  7. "src/core/subintro.js",
  8. "src/core/testintro.js"
  9. ],
  10. "requireCurlyBraces": [
  11. "if",
  12. "else",
  13. "for",
  14. "while",
  15. "do",
  16. "try",
  17. "catch"
  18. ],
  19. "requireOperatorBeforeLineBreak": true,
  20. "requireCamelCaseOrUpperCaseIdentifiers": true,
  21. "disallowMultipleLineStrings": true,
  22. "disallowMixedSpacesAndTabs": true,
  23. "disallowTrailingWhitespace": true,
  24. "disallowSpaceAfterPrefixUnaryOperators": true,
  25. "requireSpaceAfterKeywords": [
  26. "if",
  27. "else",
  28. "for",
  29. "while",
  30. "do",
  31. "switch",
  32. "return",
  33. "try",
  34. "catch"
  35. ],
  36. "requireSpaceBeforeBinaryOperators": [
  37. "=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
  38. "&=", "|=", "^=", "+=",
  39. "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
  40. "|", "^", "&&", "||", "===", "==", ">=",
  41. "<=", "<", ">", "!=", "!=="
  42. ],
  43. "requireSpaceAfterBinaryOperators": true,
  44. "requireSpacesInConditionalExpression": true,
  45. "requireSpaceBeforeBlockStatements": true,
  46. "requireLineFeedAtFileEnd": true,
  47. "requireSpacesInFunctionExpression": {
  48. "beforeOpeningCurlyBrace": true
  49. },
  50. "disallowSpacesInsideParentheses": true,
  51. "disallowMultipleLineBreaks": true,
  52. "disallowNewlineBeforeBlockStatements": true
  53. }