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.

122 lines
2.8 KiB

4 years ago
  1. {
  2. "es3": true,
  3. "additionalRules": [],
  4. "requireSemicolons": true,
  5. "disallowMultipleSpaces": true,
  6. "disallowIdentifierNames": [],
  7. "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
  8. "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
  9. "disallowSpaceAfterKeywords": [],
  10. "disallowSpaceBeforeComma": true,
  11. "disallowSpaceBeforeSemicolon": true,
  12. "disallowNodeTypes": [
  13. "DebuggerStatement",
  14. "ForInStatement",
  15. "LabeledStatement",
  16. "SwitchCase",
  17. "SwitchStatement",
  18. "WithStatement"
  19. ],
  20. "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
  21. "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
  22. "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
  23. "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
  24. "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
  25. "requireSpaceBetweenArguments": true,
  26. "disallowSpacesInsideParentheses": true,
  27. "disallowSpacesInsideArrayBrackets": true,
  28. "disallowQuotedKeysInObjects": "allButReserved",
  29. "disallowSpaceAfterObjectKeys": true,
  30. "requireCommaBeforeLineBreak": true,
  31. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  32. "requireSpaceAfterPrefixUnaryOperators": [],
  33. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  34. "requireSpaceBeforePostfixUnaryOperators": [],
  35. "disallowSpaceBeforeBinaryOperators": [],
  36. "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  37. "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  38. "disallowSpaceAfterBinaryOperators": [],
  39. "disallowImplicitTypeConversion": ["binary", "string"],
  40. "disallowKeywords": ["with", "eval"],
  41. "requireKeywordsOnNewLine": [],
  42. "disallowKeywordsOnNewLine": ["else"],
  43. "requireLineFeedAtFileEnd": true,
  44. "disallowTrailingWhitespace": true,
  45. "disallowTrailingComma": true,
  46. "excludeFiles": ["node_modules/**", "vendor/**"],
  47. "disallowMultipleLineStrings": true,
  48. "requireDotNotation": true,
  49. "requireParenthesesAroundIIFE": true,
  50. "validateLineBreaks": "LF",
  51. "validateQuoteMarks": {
  52. "escape": true,
  53. "mark": "'"
  54. },
  55. "disallowOperatorBeforeLineBreak": [],
  56. "requireSpaceBeforeKeywords": [
  57. "do",
  58. "for",
  59. "if",
  60. "else",
  61. "switch",
  62. "case",
  63. "try",
  64. "catch",
  65. "finally",
  66. "while",
  67. "with",
  68. "return"
  69. ],
  70. "validateAlignedFunctionParameters": {
  71. "lineBreakAfterOpeningBraces": true,
  72. "lineBreakBeforeClosingBraces": true
  73. },
  74. "requirePaddingNewLinesBeforeExport": true,
  75. "validateNewlineAfterArrayElements": {
  76. "maximum": 1
  77. },
  78. "requirePaddingNewLinesAfterUseStrict": true,
  79. "disallowArrowFunctions": true,
  80. "validateOrderInObjectKeys": "asc-insensitive"
  81. }