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.

89 lines
2.3 KiB

  1. {
  2. "excludeFiles": ["node_modules/**", "bower_components/**"],
  3. "requireCurlyBraces": [
  4. "if",
  5. "else",
  6. "for",
  7. "while",
  8. "do",
  9. "try",
  10. "catch"
  11. ],
  12. "requireOperatorBeforeLineBreak": true,
  13. "requireCamelCaseOrUpperCaseIdentifiers": true,
  14. "maximumLineLength": {
  15. "value": 80,
  16. "allowComments": true,
  17. "allowRegex": true
  18. },
  19. "validateIndentation": 2,
  20. "validateQuoteMarks": "'",
  21. "disallowMultipleLineStrings": true,
  22. "disallowMixedSpacesAndTabs": true,
  23. "disallowTrailingWhitespace": true,
  24. "disallowSpaceAfterPrefixUnaryOperators": true,
  25. "disallowMultipleVarDecl": null,
  26. "requireSpaceAfterKeywords": [
  27. "if",
  28. "else",
  29. "for",
  30. "while",
  31. "do",
  32. "switch",
  33. "return",
  34. "try",
  35. "catch"
  36. ],
  37. "requireSpaceBeforeBinaryOperators": [
  38. "=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
  39. "&=", "|=", "^=", "+=",
  40. "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
  41. "|", "^", "&&", "||", "===", "==", ">=",
  42. "<=", "<", ">", "!=", "!=="
  43. ],
  44. "requireSpaceAfterBinaryOperators": true,
  45. "requireSpacesInConditionalExpression": true,
  46. "requireSpaceBeforeBlockStatements": true,
  47. "requireLineFeedAtFileEnd": true,
  48. "disallowSpacesInsideObjectBrackets": "all",
  49. "disallowSpacesInsideArrayBrackets": "all",
  50. "disallowSpacesInsideParentheses": true,
  51. "validateJSDoc": {
  52. "checkParamNames": true,
  53. "requireParamTypes": true
  54. },
  55. "disallowMultipleLineBreaks": true,
  56. "requireLineFeedAtFileEnd": null,
  57. "disallowCommaBeforeLineBreak": null,
  58. "disallowDanglingUnderscores": null,
  59. "disallowEmptyBlocks": null,
  60. "disallowMixedSpacesAndTabs": null,
  61. "disallowMultipleLineStrings": null,
  62. "disallowTrailingComma": null,
  63. "disallowTrailingWhitespace": null,
  64. "maximumLineLength": null,
  65. "requireCamelCaseOrUpperCaseIdentifiers": null,
  66. "requireCapitalizedConstructors": null,
  67. "requireCommaBeforeLineBreak": null,
  68. "requireCurlyBraces": null,
  69. "requireDotNotation": null,
  70. "requireMultipleVarDecl": null,
  71. "requireOperatorBeforeLineBreak": null,
  72. "requireParenthesesAroundIIFE": true,
  73. "validateIndentation": 4,
  74. "validateQuoteMarks": null
  75. }