.eslintrc.json 762 B

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