.jscs.json 1.9 KB

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