.eslintrc.json 952 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "extends": ["prettier", "react-app"],
  3. "plugins": ["prettier"],
  4. "rules": {
  5. "@typescript-eslint/no-unused-vars": "warn",
  6. "curly": "warn",
  7. "dot-notation": "warn",
  8. "import/no-anonymous-default-export": "off",
  9. "no-console": [
  10. "warn",
  11. {
  12. "allow": ["warn", "error", "info"]
  13. }
  14. ],
  15. "no-else-return": "warn",
  16. "no-lonely-if": "warn",
  17. "no-restricted-syntax": [
  18. "warn",
  19. {
  20. "message": "Use 't(...)' instead of literal text in JSX",
  21. "selector": "JSXText[value=/\\w/]"
  22. }
  23. ],
  24. "no-unneeded-ternary": "warn",
  25. "no-unused-expressions": "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. }