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.

176 lines
4.0 KiB

4 years ago
  1. {
  2. "es3": true,
  3. "additionalRules": [],
  4. "requireSemicolons": true,
  5. "disallowMultipleSpaces": true,
  6. "disallowIdentifierNames": [],
  7. "requireCurlyBraces": {
  8. "allExcept": [],
  9. "keywords": ["if", "else", "for", "while", "do", "try", "catch"]
  10. },
  11. "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
  12. "disallowSpaceAfterKeywords": [],
  13. "disallowSpaceBeforeComma": true,
  14. "disallowSpaceAfterComma": false,
  15. "disallowSpaceBeforeSemicolon": true,
  16. "disallowNodeTypes": [
  17. "DebuggerStatement",
  18. "ForInStatement",
  19. "LabeledStatement",
  20. "SwitchCase",
  21. "SwitchStatement",
  22. "WithStatement"
  23. ],
  24. "requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
  25. "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
  26. "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
  27. "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
  28. "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
  29. "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
  30. "requireSpaceBetweenArguments": true,
  31. "disallowSpacesInsideParentheses": true,
  32. "disallowSpacesInsideArrayBrackets": true,
  33. "disallowQuotedKeysInObjects": { "allExcept": ["reserved"] },
  34. "disallowSpaceAfterObjectKeys": true,
  35. "requireCommaBeforeLineBreak": true,
  36. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  37. "requireSpaceAfterPrefixUnaryOperators": [],
  38. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  39. "requireSpaceBeforePostfixUnaryOperators": [],
  40. "disallowSpaceBeforeBinaryOperators": [],
  41. "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  42. "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  43. "disallowSpaceAfterBinaryOperators": [],
  44. "disallowImplicitTypeConversion": ["binary", "string"],
  45. "disallowKeywords": ["with", "eval"],
  46. "requireKeywordsOnNewLine": [],
  47. "disallowKeywordsOnNewLine": ["else"],
  48. "requireLineFeedAtFileEnd": true,
  49. "disallowTrailingWhitespace": true,
  50. "disallowTrailingComma": true,
  51. "excludeFiles": ["node_modules/**", "vendor/**"],
  52. "disallowMultipleLineStrings": true,
  53. "requireDotNotation": { "allExcept": ["keywords"] },
  54. "requireParenthesesAroundIIFE": true,
  55. "validateLineBreaks": "LF",
  56. "validateQuoteMarks": {
  57. "escape": true,
  58. "mark": "'"
  59. },
  60. "disallowOperatorBeforeLineBreak": [],
  61. "requireSpaceBeforeKeywords": [
  62. "do",
  63. "for",
  64. "if",
  65. "else",
  66. "switch",
  67. "case",
  68. "try",
  69. "catch",
  70. "finally",
  71. "while",
  72. "with",
  73. "return"
  74. ],
  75. "validateAlignedFunctionParameters": {
  76. "lineBreakAfterOpeningBraces": true,
  77. "lineBreakBeforeClosingBraces": true
  78. },
  79. "requirePaddingNewLinesBeforeExport": true,
  80. "validateNewlineAfterArrayElements": {
  81. "maximum": 8
  82. },
  83. "requirePaddingNewLinesAfterUseStrict": true,
  84. "disallowArrowFunctions": true,
  85. "disallowMultiLineTernary": true,
  86. "validateOrderInObjectKeys": "asc-insensitive",
  87. "disallowIdenticalDestructuringNames": true,
  88. "disallowNestedTernaries": { "maxLevel": 1 },
  89. "requireSpaceAfterComma": { "allExcept": ["trailing"] },
  90. "requireAlignedMultilineParams": false,
  91. "requireSpacesInGenerator": {
  92. "afterStar": true
  93. },
  94. "disallowSpacesInGenerator": {
  95. "beforeStar": true
  96. },
  97. "disallowVar": false,
  98. "requireArrayDestructuring": false,
  99. "requireEnhancedObjectLiterals": false,
  100. "requireObjectDestructuring": false,
  101. "requireEarlyReturn": false,
  102. "requireCapitalizedConstructorsNew": {
  103. "allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
  104. },
  105. "requireImportAlphabetized": false,
  106. "requireSpaceBeforeObjectValues": true,
  107. "requireSpaceBeforeDestructuredValues": true,
  108. "disallowSpacesInsideTemplateStringPlaceholders": true,
  109. "disallowArrayDestructuringReturn": false,
  110. "requireNewlineBeforeSingleStatementsInIf": false,
  111. "disallowUnusedVariables": true,
  112. "requireSpacesInsideImportedObjectBraces": true,
  113. "requireUseStrict": true
  114. }