.jscs.json 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "disallowEmptyBlocks": true,
  3. "disallowKeywords": ["with"],
  4. "disallowMixedSpacesAndTabs": true,
  5. "disallowMultipleLineStrings": true,
  6. "disallowMultipleVarDecl": true,
  7. "disallowQuotedKeysInObjects": "allButReserved",
  8. "disallowSpaceAfterPrefixUnaryOperators": ["!"],
  9. "disallowSpaceBeforeBinaryOperators": [","],
  10. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  11. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  12. "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
  13. "disallowSpacesInsideArrayBrackets": true,
  14. "disallowSpacesInsideParentheses": true,
  15. "disallowTrailingComma": true,
  16. "requireCamelCaseOrUpperCaseIdentifiers": true,
  17. "requireCapitalizedConstructors": true,
  18. "requireCommaBeforeLineBreak": true,
  19. "requireDotNotation": true,
  20. "requireLineFeedAtFileEnd": true,
  21. "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
  22. "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
  23. "requireSpaceAfterLineComment": true,
  24. "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
  25. "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true, "beforeOpeningRoundBrace": true },
  26. "requireSpacesInConditionalExpression": true,
  27. "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
  28. "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
  29. "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
  30. "requireSpacesInsideObjectBrackets": "allButNested",
  31. "validateIndentation": 2,
  32. "validateQuoteMarks": "'"
  33. }