index.js 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. "use strict";
  2. const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
  3. module.exports = {
  4. rules: {
  5. // The following rules can be used in some cases. See the README for more
  6. // information. (These are marked with `0` instead of `"off"` so that a
  7. // script can distinguish them.)
  8. "curly": 0,
  9. "lines-around-comment": 0,
  10. "max-len": 0,
  11. "no-confusing-arrow": 0,
  12. "no-mixed-operators": 0,
  13. "no-tabs": 0,
  14. "no-unexpected-multiline": 0,
  15. "quotes": 0,
  16. "@typescript-eslint/quotes": 0,
  17. "babel/quotes": 0,
  18. "vue/html-self-closing": 0,
  19. "vue/max-len": 0,
  20. // The rest are rules that you never need to enable when using Prettier.
  21. "array-bracket-newline": "off",
  22. "array-bracket-spacing": "off",
  23. "array-element-newline": "off",
  24. "arrow-parens": "off",
  25. "arrow-spacing": "off",
  26. "block-spacing": "off",
  27. "brace-style": "off",
  28. "comma-dangle": "off",
  29. "comma-spacing": "off",
  30. "comma-style": "off",
  31. "computed-property-spacing": "off",
  32. "dot-location": "off",
  33. "eol-last": "off",
  34. "func-call-spacing": "off",
  35. "function-call-argument-newline": "off",
  36. "function-paren-newline": "off",
  37. "generator-star": "off",
  38. "generator-star-spacing": "off",
  39. "implicit-arrow-linebreak": "off",
  40. "indent": "off",
  41. "jsx-quotes": "off",
  42. "key-spacing": "off",
  43. "keyword-spacing": "off",
  44. "linebreak-style": "off",
  45. "multiline-ternary": "off",
  46. "newline-per-chained-call": "off",
  47. "new-parens": "off",
  48. "no-arrow-condition": "off",
  49. "no-comma-dangle": "off",
  50. "no-extra-parens": "off",
  51. "no-extra-semi": "off",
  52. "no-floating-decimal": "off",
  53. "no-mixed-spaces-and-tabs": "off",
  54. "no-multi-spaces": "off",
  55. "no-multiple-empty-lines": "off",
  56. "no-reserved-keys": "off",
  57. "no-space-before-semi": "off",
  58. "no-trailing-spaces": "off",
  59. "no-whitespace-before-property": "off",
  60. "no-wrap-func": "off",
  61. "nonblock-statement-body-position": "off",
  62. "object-curly-newline": "off",
  63. "object-curly-spacing": "off",
  64. "object-property-newline": "off",
  65. "one-var-declaration-per-line": "off",
  66. "operator-linebreak": "off",
  67. "padded-blocks": "off",
  68. "quote-props": "off",
  69. "rest-spread-spacing": "off",
  70. "semi": "off",
  71. "semi-spacing": "off",
  72. "semi-style": "off",
  73. "space-after-function-name": "off",
  74. "space-after-keywords": "off",
  75. "space-before-blocks": "off",
  76. "space-before-function-paren": "off",
  77. "space-before-function-parentheses": "off",
  78. "space-before-keywords": "off",
  79. "space-in-brackets": "off",
  80. "space-in-parens": "off",
  81. "space-infix-ops": "off",
  82. "space-return-throw-case": "off",
  83. "space-unary-ops": "off",
  84. "space-unary-word-ops": "off",
  85. "switch-colon-spacing": "off",
  86. "template-curly-spacing": "off",
  87. "template-tag-spacing": "off",
  88. "unicode-bom": "off",
  89. "wrap-iife": "off",
  90. "wrap-regex": "off",
  91. "yield-star-spacing": "off",
  92. "@babel/object-curly-spacing": "off",
  93. "@babel/semi": "off",
  94. "@typescript-eslint/brace-style": "off",
  95. "@typescript-eslint/comma-dangle": "off",
  96. "@typescript-eslint/comma-spacing": "off",
  97. "@typescript-eslint/func-call-spacing": "off",
  98. "@typescript-eslint/indent": "off",
  99. "@typescript-eslint/keyword-spacing": "off",
  100. "@typescript-eslint/member-delimiter-style": "off",
  101. "@typescript-eslint/no-extra-parens": "off",
  102. "@typescript-eslint/no-extra-semi": "off",
  103. "@typescript-eslint/object-curly-spacing": "off",
  104. "@typescript-eslint/semi": "off",
  105. "@typescript-eslint/space-before-blocks": "off",
  106. "@typescript-eslint/space-before-function-paren": "off",
  107. "@typescript-eslint/space-infix-ops": "off",
  108. "@typescript-eslint/type-annotation-spacing": "off",
  109. "babel/object-curly-spacing": "off",
  110. "babel/semi": "off",
  111. "flowtype/boolean-style": "off",
  112. "flowtype/delimiter-dangle": "off",
  113. "flowtype/generic-spacing": "off",
  114. "flowtype/object-type-curly-spacing": "off",
  115. "flowtype/object-type-delimiter": "off",
  116. "flowtype/quotes": "off",
  117. "flowtype/semi": "off",
  118. "flowtype/space-after-type-colon": "off",
  119. "flowtype/space-before-generic-bracket": "off",
  120. "flowtype/space-before-type-colon": "off",
  121. "flowtype/union-intersection-spacing": "off",
  122. "react/jsx-child-element-spacing": "off",
  123. "react/jsx-closing-bracket-location": "off",
  124. "react/jsx-closing-tag-location": "off",
  125. "react/jsx-curly-newline": "off",
  126. "react/jsx-curly-spacing": "off",
  127. "react/jsx-equals-spacing": "off",
  128. "react/jsx-first-prop-new-line": "off",
  129. "react/jsx-indent": "off",
  130. "react/jsx-indent-props": "off",
  131. "react/jsx-max-props-per-line": "off",
  132. "react/jsx-newline": "off",
  133. "react/jsx-one-expression-per-line": "off",
  134. "react/jsx-props-no-multi-spaces": "off",
  135. "react/jsx-tag-spacing": "off",
  136. "react/jsx-wrap-multilines": "off",
  137. "standard/array-bracket-even-spacing": "off",
  138. "standard/computed-property-even-spacing": "off",
  139. "standard/object-curly-even-spacing": "off",
  140. "unicorn/empty-brace-spaces": "off",
  141. "unicorn/no-nested-ternary": "off",
  142. "unicorn/number-literal-case": "off",
  143. "vue/array-bracket-newline": "off",
  144. "vue/array-bracket-spacing": "off",
  145. "vue/arrow-spacing": "off",
  146. "vue/block-spacing": "off",
  147. "vue/block-tag-newline": "off",
  148. "vue/brace-style": "off",
  149. "vue/comma-dangle": "off",
  150. "vue/comma-spacing": "off",
  151. "vue/comma-style": "off",
  152. "vue/dot-location": "off",
  153. "vue/func-call-spacing": "off",
  154. "vue/html-closing-bracket-newline": "off",
  155. "vue/html-closing-bracket-spacing": "off",
  156. "vue/html-end-tags": "off",
  157. "vue/html-indent": "off",
  158. "vue/html-quotes": "off",
  159. "vue/key-spacing": "off",
  160. "vue/keyword-spacing": "off",
  161. "vue/max-attributes-per-line": "off",
  162. "vue/multiline-html-element-content-newline": "off",
  163. "vue/mustache-interpolation-spacing": "off",
  164. "vue/no-extra-parens": "off",
  165. "vue/no-multi-spaces": "off",
  166. "vue/no-spaces-around-equal-signs-in-attribute": "off",
  167. "vue/object-curly-newline": "off",
  168. "vue/object-curly-spacing": "off",
  169. "vue/object-property-newline": "off",
  170. "vue/operator-linebreak": "off",
  171. "vue/quote-props": "off",
  172. "vue/script-indent": "off",
  173. "vue/singleline-html-element-content-newline": "off",
  174. "vue/space-in-parens": "off",
  175. "vue/space-infix-ops": "off",
  176. "vue/space-unary-ops": "off",
  177. "vue/template-curly-spacing": "off",
  178. ...(includeDeprecated && {
  179. // Deprecated since version 4.0.0.
  180. // https://github.com/eslint/eslint/pull/8286
  181. "indent-legacy": "off",
  182. // Deprecated since version 3.3.0.
  183. // https://eslint.org/docs/rules/no-spaced-func
  184. "no-spaced-func": "off",
  185. // Deprecated since version 7.0.0.
  186. // https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#700---2017-05-06
  187. "react/jsx-space-before-closing": "off",
  188. }),
  189. },
  190. };