.eslintrc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. "prefer-destructuring": ["error", {"object": false, "array": false}],
  15. "generator-star-spacing": [0],
  16. "consistent-return": [0],
  17. "react/forbid-prop-types": [0],
  18. "react/jsx-filename-extension": [1, { "extensions": [".js"] }],
  19. "global-require": [1],
  20. "import/prefer-default-export": [0],
  21. "react/jsx-no-bind": [0],
  22. "react/prop-types": [0],
  23. "react/prefer-stateless-function": [0],
  24. "react/jsx-wrap-multilines": ["error", {
  25. "declaration": "parens-new-line",
  26. "assignment": "parens-new-line",
  27. "return": "parens-new-line",
  28. "arrow": "parens-new-line",
  29. "condition": "parens-new-line",
  30. "logical": "parens-new-line",
  31. "prop": "ignore"
  32. }],
  33. "no-else-return": [0],
  34. "no-restricted-syntax": [0],
  35. "import/no-extraneous-dependencies": [0],
  36. "no-use-before-define": [0],
  37. "jsx-a11y/no-static-element-interactions": [0],
  38. "jsx-a11y/no-noninteractive-element-interactions": [0],
  39. "jsx-a11y/click-events-have-key-events": [0],
  40. "jsx-a11y/anchor-is-valid": [0],
  41. "no-nested-ternary": [0],
  42. "arrow-body-style": [0],
  43. "import/extensions": [0],
  44. "no-bitwise": [0],
  45. "no-cond-assign": [0],
  46. "import/no-unresolved": [0],
  47. "comma-dangle": ["error", {
  48. "arrays": "always-multiline",
  49. "objects": "always-multiline",
  50. "imports": "always-multiline",
  51. "exports": "always-multiline",
  52. "functions": "ignore"
  53. }],
  54. "object-curly-newline": [0],
  55. "function-paren-newline": [0],
  56. "no-restricted-globals": [0],
  57. "require-yield": [1],
  58. "compat/compat": "error"
  59. },
  60. "parserOptions": {
  61. "ecmaFeatures": {
  62. "experimentalObjectRestSpread": true
  63. }
  64. },
  65. "settings": {
  66. "polyfills": ["fetch", "promises"]
  67. }
  68. }