react.js 986 B

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
  3. module.exports = {
  4. rules: Object.assign(
  5. {
  6. "react/jsx-child-element-spacing": "off",
  7. "react/jsx-closing-bracket-location": "off",
  8. "react/jsx-closing-tag-location": "off",
  9. "react/jsx-curly-newline": "off",
  10. "react/jsx-curly-spacing": "off",
  11. "react/jsx-equals-spacing": "off",
  12. "react/jsx-first-prop-new-line": "off",
  13. "react/jsx-indent": "off",
  14. "react/jsx-indent-props": "off",
  15. "react/jsx-max-props-per-line": "off",
  16. "react/jsx-one-expression-per-line": "off",
  17. "react/jsx-props-no-multi-spaces": "off",
  18. "react/jsx-tag-spacing": "off",
  19. "react/jsx-wrap-multilines": "off",
  20. },
  21. includeDeprecated && {
  22. // Deprecated since version 7.0.0.
  23. // https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#700---2017-05-06
  24. "react/jsx-space-before-closing": "off",
  25. }
  26. ),
  27. };