.eslintrc.json 668 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "extends": ["prettier", "react-app", "react-app/jest"],
  3. "plugins": ["prettier"],
  4. "rules": {
  5. "import/no-anonymous-default-export": "off",
  6. "curly": "warn",
  7. "no-console": [
  8. "warn",
  9. {
  10. "allow": ["warn", "error", "info"]
  11. }
  12. ],
  13. "no-else-return": "warn",
  14. "no-useless-return": "warn",
  15. "prefer-const": [
  16. "warn",
  17. {
  18. "destructuring": "all"
  19. }
  20. ],
  21. "prefer-template": "warn",
  22. "prettier/prettier": "warn",
  23. "no-restricted-syntax": [
  24. "warn",
  25. {
  26. "selector": "JSXText[value=/\\w/]",
  27. "message": "Use 't(...)' instead of literal text in JSX"
  28. }
  29. ]
  30. }
  31. }