.eslintrc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "parser": "babel-eslint",
  3. "extends": "airbnb",
  4. "plugins": ["compat"],
  5. "env": {
  6. "browser": true,
  7. "node": true,
  8. "es6": true,
  9. "mocha": true,
  10. "jest": true,
  11. "jasmine": true
  12. },
  13. "rules": {
  14. "generator-star-spacing": [0],
  15. "consistent-return": [0],
  16. "react/forbid-prop-types": [0],
  17. "react/jsx-filename-extension": [1, { "extensions": [".js"] }],
  18. "global-require": [1],
  19. "import/prefer-default-export": [0],
  20. "react/jsx-no-bind": [0],
  21. "react/prop-types": [0],
  22. "react/prefer-stateless-function": [0],
  23. "no-else-return": [0],
  24. "no-restricted-syntax": [0],
  25. "import/no-extraneous-dependencies": [0],
  26. "no-use-before-define": [0],
  27. "jsx-a11y/no-static-element-interactions": [0],
  28. "jsx-a11y/no-noninteractive-element-interactions": [0],
  29. "jsx-a11y/click-events-have-key-events": [0],
  30. "jsx-a11y/anchor-is-valid": [0],
  31. "no-nested-ternary": [0],
  32. "arrow-body-style": [0],
  33. "import/extensions": [0],
  34. "no-bitwise": [0],
  35. "no-cond-assign": [0],
  36. "import/no-unresolved": [0],
  37. "comma-dangle": ["error", {
  38. "arrays": "always-multiline",
  39. "objects": "always-multiline",
  40. "imports": "always-multiline",
  41. "exports": "always-multiline",
  42. "functions": "ignore"
  43. }],
  44. "object-curly-newline": [0],
  45. "function-paren-newline": [0],
  46. "no-restricted-globals": [0],
  47. "require-yield": [1],
  48. "compat/compat": "error"
  49. },
  50. "parserOptions": {
  51. "ecmaFeatures": {
  52. "experimentalObjectRestSpread": true
  53. }
  54. },
  55. "settings": {
  56. "polyfills": ["fetch"]
  57. }
  58. }