.eslintrc.json 879 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. "one-var": ["warn", "never"],
  28. "prefer-arrow-callback": "warn",
  29. "prefer-const": [
  30. "warn",
  31. {
  32. "destructuring": "all"
  33. }
  34. ],
  35. "prefer-template": "warn",
  36. "prettier/prettier": "warn"
  37. }
  38. }