.eslintrc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "extends": "umi",
  3. "rules": {
  4. "arrow-body-style": [0, "never"],
  5. "comma-dangle": [2, "never"],
  6. "global-require": 0,
  7. "func-names": 0,
  8. "prefer-const": 0,
  9. "import/no-unresolved": 0,
  10. "import/extensions": 0,
  11. "max-len": 0,
  12. "no-unused-expressions": [0, {
  13. "allowShortCircuit": true,
  14. "allowTernary": true
  15. }],
  16. "no-console": 0,
  17. "no-script-url": 0,
  18. "no-extend-native": 0,
  19. "no-param-reassign": 0,
  20. "no-restricted-syntax": 0,
  21. "no-eval": 0,
  22. "no-continue": 0,
  23. "no-mixed-operators": 0,
  24. "no-plusplus": 0,
  25. "no-unused-vars": [2, { "ignoreRestSiblings": true }],
  26. "no-underscore-dangle": 0,
  27. "space-before-function-paren": ["error", {
  28. "anonymous":"always",
  29. "named":"never",
  30. "asyncArrow":"always"
  31. }],
  32. "import/no-extraneous-dependencies": 0,
  33. "import/prefer-default-export": 0,
  34. "jsx-a11y/no-static-element-interactions": 0,
  35. "jsx-a11y/click-events-have-key-events": 0,
  36. "jsx-a11y/href-no-hash": 0,
  37. "jsx-a11y/anchor-is-valid": 0,
  38. "jsx-a11y/label-has-for": 0,
  39. "react/no-array-index-key": 0,
  40. "react/require-default-props": 0,
  41. "react/forbid-prop-types": 0,
  42. "react/no-string-refs": 0,
  43. "react/no-find-dom-node": 0,
  44. "react/prefer-stateless-function": 0,
  45. "react/jsx-closing-tag-location": 0,
  46. "react/sort-comp": 0,
  47. "react/jsx-no-bind": 0,
  48. "react/no-danger": 0,
  49. "react/jsx-first-prop-new-line": 0,
  50. "react/jsx-filename-extension": 0
  51. }
  52. }