.eslintrc.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. "react/jsx-indent": [2, 2, { "checkAttributes": false }],
  19. "no-else-return": 0,
  20. "import/no-unresolved": 0,
  21. "no-unused-vars": [
  22. 0,
  23. { "vars": "local", "varsIgnorePattern": "WebBrowser" }
  24. ],
  25. "no-nested-ternary": 0,
  26. "react/no-array-index-key": 0,
  27. "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
  28. "no-unused-expressions": [
  29. "error",
  30. { "allowShortCircuit": true, "allowTernary": true }
  31. ],
  32. "no-param-reassign": 0,
  33. "react/prop-types": [0, { "ignore": ["navigation"] }],
  34. "react/jsx-props-no-spreading": [
  35. 1,
  36. {
  37. "html": "ignore",
  38. "exceptions": ["Icon", "props", "Avatar", "Text"]
  39. }
  40. ],
  41. "react/jsx-curly-newline": "off",
  42. "react/jsx-one-expression-per-line": [0]
  43. }
  44. }