.eslintrc.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "extends": ["airbnb", "prettier"],
  3. "plugins": ["prettier"],
  4. "parser": "babel-eslint",
  5. "env": {
  6. "browser": true,
  7. "es6": true
  8. },
  9. "globals": {
  10. "__DEV__": "readonly"
  11. },
  12. "rules": {
  13. "prettier/prettier": "error",
  14. "no-use-before-define": [
  15. "error",
  16. { "functions": true, "classes": true, "variables": false }
  17. ],
  18. "no-else-return": 0,
  19. "import/no-unresolved": 0,
  20. "no-unused-vars": [
  21. "error",
  22. { "vars": "local", "varsIgnorePattern": "WebBrowser" }
  23. ],
  24. "no-nested-ternary": 0,
  25. "react/no-array-index-key": 0,
  26. "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
  27. "no-unused-expressions": [
  28. "error",
  29. { "allowShortCircuit": true, "allowTernary": true }
  30. ],
  31. "no-param-reassign": 0,
  32. "react/prop-types": [0, { "ignore": ["navigation"] }],
  33. "react/jsx-props-no-spreading": [
  34. 1,
  35. { "html": "ignore", "exceptions": ["Icon", "props", "Avatar", "Text"] }
  36. ],
  37. "react/jsx-curly-newline": "off"
  38. }
  39. }