.eslintrc 1.9 KB

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