.eslintrc.json 933 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "extends": ["prettier", "react-app"],
  3. "plugins": ["prettier"],
  4. "rules": {
  5. "curly": "warn",
  6. "dot-notation": "warn",
  7. "import/no-anonymous-default-export": "off",
  8. "no-console": [
  9. "warn",
  10. {
  11. "allow": ["warn", "error", "info"]
  12. }
  13. ],
  14. "no-else-return": "warn",
  15. "no-lonely-if": "warn",
  16. "no-restricted-syntax": [
  17. "warn",
  18. {
  19. "message": "Use 't(...)' instead of literal text in JSX",
  20. "selector": "JSXText[value=/\\w/]"
  21. }
  22. ],
  23. "no-unneeded-ternary": "warn",
  24. "no-unused-expressions": "warn",
  25. "no-unused-vars": "warn",
  26. "no-useless-return": "warn",
  27. "no-var": "warn",
  28. "object-shorthand": "warn",
  29. "one-var": ["warn", "never"],
  30. "prefer-arrow-callback": "warn",
  31. "prefer-const": [
  32. "warn",
  33. {
  34. "destructuring": "all"
  35. }
  36. ],
  37. "prefer-template": "warn",
  38. "prettier/prettier": "warn"
  39. }
  40. }