.jscs.json 2.8 KB

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