.eslintrc 1.5 KB

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