.eslintrc.json 601 B

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