index.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. "use strict";
  2. const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
  3. module.exports = {
  4. rules: Object.assign(
  5. {
  6. // The following rules can be used in some cases. See the README for more
  7. // information. (These are marked with `0` instead of `"off"` so that a
  8. // script can distinguish them.)
  9. "arrow-body-style": 0,
  10. curly: 0,
  11. "lines-around-comment": 0,
  12. "max-len": 0,
  13. "no-confusing-arrow": 0,
  14. "no-mixed-operators": 0,
  15. "no-tabs": 0,
  16. "no-unexpected-multiline": 0,
  17. "prefer-arrow-callback": 0,
  18. quotes: 0,
  19. // The rest are rules that you never need to enable when using Prettier.
  20. "array-bracket-newline": "off",
  21. "array-bracket-spacing": "off",
  22. "array-element-newline": "off",
  23. "arrow-parens": "off",
  24. "arrow-spacing": "off",
  25. "block-spacing": "off",
  26. "brace-style": "off",
  27. "comma-dangle": "off",
  28. "comma-spacing": "off",
  29. "comma-style": "off",
  30. "computed-property-spacing": "off",
  31. "dot-location": "off",
  32. "eol-last": "off",
  33. "func-call-spacing": "off",
  34. "function-call-argument-newline": "off",
  35. "function-paren-newline": "off",
  36. "generator-star": "off",
  37. "generator-star-spacing": "off",
  38. "implicit-arrow-linebreak": "off",
  39. indent: "off",
  40. "jsx-quotes": "off",
  41. "key-spacing": "off",
  42. "keyword-spacing": "off",
  43. "linebreak-style": "off",
  44. "multiline-ternary": "off",
  45. "newline-per-chained-call": "off",
  46. "new-parens": "off",
  47. "no-arrow-condition": "off",
  48. "no-comma-dangle": "off",
  49. "no-extra-parens": "off",
  50. "no-extra-semi": "off",
  51. "no-floating-decimal": "off",
  52. "no-mixed-spaces-and-tabs": "off",
  53. "no-multi-spaces": "off",
  54. "no-multiple-empty-lines": "off",
  55. "no-reserved-keys": "off",
  56. "no-space-before-semi": "off",
  57. "no-trailing-spaces": "off",
  58. "no-whitespace-before-property": "off",
  59. "no-wrap-func": "off",
  60. "nonblock-statement-body-position": "off",
  61. "object-curly-newline": "off",
  62. "object-curly-spacing": "off",
  63. "object-property-newline": "off",
  64. "one-var-declaration-per-line": "off",
  65. "operator-linebreak": "off",
  66. "padded-blocks": "off",
  67. "quote-props": "off",
  68. "rest-spread-spacing": "off",
  69. semi: "off",
  70. "semi-spacing": "off",
  71. "semi-style": "off",
  72. "space-after-function-name": "off",
  73. "space-after-keywords": "off",
  74. "space-before-blocks": "off",
  75. "space-before-function-paren": "off",
  76. "space-before-function-parentheses": "off",
  77. "space-before-keywords": "off",
  78. "space-in-brackets": "off",
  79. "space-in-parens": "off",
  80. "space-infix-ops": "off",
  81. "space-return-throw-case": "off",
  82. "space-unary-ops": "off",
  83. "space-unary-word-ops": "off",
  84. "switch-colon-spacing": "off",
  85. "template-curly-spacing": "off",
  86. "template-tag-spacing": "off",
  87. "unicode-bom": "off",
  88. "wrap-iife": "off",
  89. "wrap-regex": "off",
  90. "yield-star-spacing": "off",
  91. },
  92. includeDeprecated && {
  93. // Deprecated since version 4.0.0.
  94. // https://github.com/eslint/eslint/pull/8286
  95. "indent-legacy": "off",
  96. // Deprecated since version 3.3.0.
  97. // https://eslint.org/docs/rules/no-spaced-func
  98. "no-spaced-func": "off",
  99. }
  100. ),
  101. };