.eslintrc 1.3 KB

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