.eslintrc.json 838 B

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