.eslintrc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "parser": "babel-eslint",
  3. "extends": "airbnb",
  4. "env": {
  5. "browser": true,
  6. "node": true,
  7. "es6": true
  8. },
  9. "rules": {
  10. "generator-star-spacing": [0],
  11. "consistent-return": [0],
  12. "react/forbid-prop-types": [0],
  13. "react/jsx-filename-extension": [1, { "extensions": [".js"] }],
  14. "global-require": [1],
  15. "import/prefer-default-export": [0],
  16. "react/jsx-no-bind": [0],
  17. "react/prop-types": [0],
  18. "react/prefer-stateless-function": [0],
  19. "no-else-return": [0],
  20. "no-restricted-syntax": [0],
  21. "import/no-extraneous-dependencies": [0],
  22. "no-use-before-define": [0],
  23. "jsx-a11y/no-static-element-interactions": [0],
  24. "jsx-a11y/no-noninteractive-element-interactions": [0],
  25. "no-nested-ternary": [0],
  26. "arrow-body-style": [0],
  27. "import/extensions": [0],
  28. "no-bitwise": [0],
  29. "no-cond-assign": [0],
  30. "import/no-unresolved": [0],
  31. "comma-dangle": ["error", {
  32. "arrays": "always-multiline",
  33. "objects": "always-multiline",
  34. "imports": "always-multiline",
  35. "exports": "always-multiline",
  36. "functions": "ignore"
  37. }],
  38. "require-yield": [1]
  39. },
  40. "parserOptions": {
  41. "ecmaFeatures": {
  42. "experimentalObjectRestSpread": true
  43. }
  44. }
  45. }