.jscs.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
  3. "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
  4. "disallowSpaceAfterKeywords": [],
  5. "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
  6. "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
  7. "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
  8. "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
  9. "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
  10. "disallowSpacesInsideParentheses": true,
  11. "disallowSpacesInsideArrayBrackets": true,
  12. "disallowQuotedKeysInObjects": "allButReserved",
  13. "disallowSpaceAfterObjectKeys": true,
  14. "requireCommaBeforeLineBreak": true,
  15. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  16. "requireSpaceAfterPrefixUnaryOperators": [],
  17. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  18. "requireSpaceBeforePostfixUnaryOperators": [],
  19. "disallowSpaceBeforeBinaryOperators": [],
  20. "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  21. "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  22. "disallowSpaceAfterBinaryOperators": [],
  23. "disallowImplicitTypeConversion": ["binary", "string"],
  24. "disallowKeywords": ["with", "eval"],
  25. "validateLineBreaks": "LF",
  26. "requireKeywordsOnNewLine": [],
  27. "disallowKeywordsOnNewLine": ["else"],
  28. "requireLineFeedAtFileEnd": true,
  29. "disallowTrailingWhitespace": true,
  30. "excludeFiles": ["node_modules/**", "vendor/**"],
  31. "disallowMultipleLineStrings": true,
  32. "additionalRules": []
  33. }