You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.6KB

  1. {
  2. "requireCurlyBraces": [
  3. "if",
  4. "else",
  5. "for",
  6. "while",
  7. "do",
  8. "try",
  9. "catch"
  10. ],
  11. "requireSpaceAfterKeywords": [
  12. "if",
  13. "else",
  14. "for",
  15. "while",
  16. "do",
  17. "switch",
  18. "case",
  19. "return",
  20. "try",
  21. "catch"
  22. ],
  23. "requireSpaceBeforeBlockStatements": true,
  24. "requireParenthesesAroundIIFE": true,
  25. "requireSpacesInConditionalExpression": true,
  26. "disallowSpacesInNamedFunctionExpression": {
  27. "beforeOpeningRoundBrace": true
  28. },
  29. "disallowSpacesInFunctionDeclaration": {
  30. "beforeOpeningRoundBrace": true
  31. },
  32. "requireSpaceBetweenArguments": true,
  33. "disallowMultipleVarDecl": true,
  34. "requireVarDeclFirst": false,
  35. "requireBlocksOnNewline": false,
  36. "disallowEmptyBlocks": true,
  37. "disallowSpacesInsideArrayBrackets": true,
  38. "disallowSpacesInsideParentheses": true,
  39. "disallowDanglingUnderscores": false,
  40. "requireCommaBeforeLineBreak": true,
  41. "disallowSpaceAfterPrefixUnaryOperators": true,
  42. "disallowSpaceBeforePostfixUnaryOperators": true,
  43. "disallowSpaceBeforeBinaryOperators": [
  44. ","
  45. ],
  46. "requireSpacesInForStatement": true,
  47. "requireSpacesInAnonymousFunctionExpression": {
  48. "beforeOpeningCurlyBrace": true
  49. },
  50. "requireSpaceBeforeBinaryOperators": true,
  51. "requireSpaceAfterBinaryOperators": true,
  52. "disallowKeywords": [
  53. "with",
  54. "continue"
  55. ],
  56. "validateIndentation": "\t",
  57. "disallowMixedSpacesAndTabs": true,
  58. "disallowTrailingWhitespace": true,
  59. "disallowTrailingComma": true,
  60. "disallowKeywordsOnNewLine": [
  61. "else"
  62. ],
  63. "requireLineFeedAtFileEnd": true,
  64. "requireCapitalizedConstructors": true,
  65. "requireDotNotation": false,
  66. "disallowNewlineBeforeBlockStatements": true,
  67. "disallowMultipleLineStrings": true,
  68. "requireSpaceBeforeObjectValues": true
  69. }