You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3KB

  1. {
  2. "parser": "babel-eslint",
  3. "extends": [
  4. "eslint-config-airbnb"
  5. ],
  6. "globals": {
  7. "LOCAL": true,
  8. "COMMITHASH": true
  9. },
  10. "env": {
  11. "browser": true,
  12. "jest": true
  13. },
  14. "rules": {
  15. "import/prefer-default-export": 0,
  16. "no-use-before-define": 0,
  17. "no-plusplus": 0,
  18. "class-methods-use-this": 0,
  19. "react/require-default-props": 0,
  20. "react/forbid-prop-types": 0,
  21. "react/destructuring-assignment": 0,
  22. "react/jsx-one-expression-per-line": 0,
  23. "react/jsx-indent": [2, 4],
  24. "react/jsx-indent-props": [2, 4],
  25. "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"]}],
  26. "indent": [2, 4, { "SwitchCase": 1 }],
  27. "no-confusing-arrow": [2,{ "allowParens": true }],
  28. "no-console": 0,
  29. "no-alert": 0,
  30. "no-prototype-builtins": 0,
  31. "new-cap": 0,
  32. "max-len": 0,
  33. "eol-last": 0,
  34. "spaced-comment": 0
  35. },
  36. "plugins": [
  37. "babel",
  38. "import",
  39. "react",
  40. "jest",
  41. "flowtype"
  42. ],
  43. "settings": {
  44. "import/ignore": [
  45. "\\.(scss|less|css)$"
  46. ]
  47. },
  48. "parserOptions": {
  49. "ecmaVersion": 7,
  50. "sourceType": "module",
  51. "ecmaFeatures": {
  52. "jsx": true
  53. }
  54. }
  55. }