.eslintrc.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "env": {
  3. "browser": true,
  4. "es2021": true
  5. },
  6. "root": true,
  7. "extends": [
  8. "standard-with-typescript",
  9. "plugin:react/recommended",
  10. "plugin:@typescript-eslint/recommended",
  11. "prettier"
  12. ],
  13. "parser": "@typescript-eslint/parser",
  14. "parserOptions": {
  15. "ecmaVersion": "latest",
  16. "sourceType": "module"
  17. },
  18. "plugins": ["react"],
  19. "rules": {
  20. "no-console": "error",
  21. "@typescript-eslint/no-explicit-any": "error",
  22. "@typescript-eslint/consistent-type-definitions": ["error", "type"],
  23. "no-unused-expressions": "off",
  24. "@typescript-eslint/no-unused-expressions": "error",
  25. "no-unused-vars": "off",
  26. "@typescript-eslint/no-unused-vars": [
  27. "error",
  28. {
  29. "varsIgnorePattern": "^_",
  30. "argsIgnorePattern": "^_",
  31. "caughtErrorsIgnorePattern": "^_"
  32. }
  33. ],
  34. "@typesecript-eslint/consistent-type-imports": "off",
  35. "@typescript-eslint/strict-boolean-expressions": "off",
  36. "@typescript-eslint/no-misused-promises": "error",
  37. "@typescript-eslint/no-floating-promises": [
  38. "error",
  39. {
  40. "ignoreVoid": true
  41. }
  42. ],
  43. "@typescript-eslint/prefer-nullish-coalescing": "off"
  44. }
  45. }