.jscsrc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "disallowEmptyBlocks": true,
  3. "disallowKeywords": ["with"],
  4. "disallowMixedSpacesAndTabs": true,
  5. "disallowMultipleLineStrings": true,
  6. "disallowMultipleVarDecl": true,
  7. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  8. "disallowSpaceBeforeBinaryOperators": [","],
  9. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  10. "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
  11. "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
  12. "disallowSpacesInsideArrayBrackets": true,
  13. "disallowSpacesInsideParentheses": true,
  14. "disallowTrailingComma": true,
  15. "disallowTrailingWhitespace": true,
  16. "requireCamelCaseOrUpperCaseIdentifiers": true,
  17. "requireCapitalizedConstructors": true,
  18. "requireCommaBeforeLineBreak": true,
  19. "requireDollarBeforejQueryAssignment": true,
  20. "requireDotNotation": true,
  21. "requireLineFeedAtFileEnd": true,
  22. "requirePaddingNewLinesAfterUseStrict": true,
  23. "requirePaddingNewLinesBeforeExport": true,
  24. "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
  25. "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
  26. "requireSpaceAfterLineComment": true,
  27. "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
  28. "requireSpaceBetweenArguments": true,
  29. "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true, "beforeOpeningRoundBrace": true },
  30. "requireSpacesInConditionalExpression": true,
  31. "requireSpacesInForStatement": true,
  32. "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
  33. "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
  34. "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
  35. "requireSpacesInsideObjectBrackets": "allButNested",
  36. "validateAlignedFunctionParameters": true,
  37. "validateIndentation": 2,
  38. "validateLineBreaks": "LF",
  39. "validateNewlineAfterArrayElements": true,
  40. "validateQuoteMarks": "'",
  41. "maxErrors": "3000"
  42. }