.jscs.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "additionalRules": [],
  3. "requireSemicolons": true,
  4. "disallowMultipleSpaces": true,
  5. "disallowIdentifierNames": [],
  6. "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
  7. "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
  8. "disallowSpaceAfterKeywords": [],
  9. "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
  10. "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
  11. "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
  12. "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
  13. "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
  14. "requireSpaceBetweenArguments": true,
  15. "disallowSpacesInsideParentheses": true,
  16. "disallowSpacesInsideArrayBrackets": true,
  17. "disallowQuotedKeysInObjects": "allButReserved",
  18. "disallowSpaceAfterObjectKeys": true,
  19. "requireCommaBeforeLineBreak": true,
  20. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  21. "requireSpaceAfterPrefixUnaryOperators": [],
  22. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  23. "requireSpaceBeforePostfixUnaryOperators": [],
  24. "disallowSpaceBeforeBinaryOperators": [],
  25. "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  26. "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  27. "disallowSpaceAfterBinaryOperators": [],
  28. "disallowImplicitTypeConversion": ["binary", "string"],
  29. "disallowKeywords": ["with", "eval"],
  30. "requireKeywordsOnNewLine": [],
  31. "disallowKeywordsOnNewLine": ["else"],
  32. "requireLineFeedAtFileEnd": true,
  33. "disallowTrailingWhitespace": true,
  34. "disallowTrailingComma": true,
  35. "excludeFiles": ["node_modules/**", "vendor/**"],
  36. "disallowMultipleLineStrings": true,
  37. "requireDotNotation": true,
  38. "requireParenthesesAroundIIFE": true,
  39. "validateLineBreaks": "LF",
  40. "validateQuoteMarks": {
  41. "escape": true,
  42. "mark": "'"
  43. },
  44. "disallowOperatorBeforeLineBreak": [],
  45. "requireSpaceBeforeKeywords": [
  46. "do",
  47. "for",
  48. "if",
  49. "else",
  50. "switch",
  51. "case",
  52. "try",
  53. "catch",
  54. "finally",
  55. "while",
  56. "with",
  57. "return"
  58. ],
  59. "validateAlignedFunctionParameters": {
  60. "lineBreakAfterOpeningBraces": true,
  61. "lineBreakBeforeClosingBraces": true
  62. },
  63. "requirePaddingNewLinesBeforeExport": true,
  64. "validateNewlineAfterArrayElements": {
  65. "maximum": 6
  66. },
  67. "requirePaddingNewLinesAfterUseStrict": true
  68. }