.eslintrc.json 780 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "root": true,
  3. "parser": "@typescript-eslint/parser",
  4. "parserOptions": {
  5. "ecmaVersion": 2024,
  6. "sourceType": "module",
  7. "ecmaFeatures": {
  8. "jsx": true
  9. },
  10. "project": "./tsconfig.json"
  11. },
  12. "env": {
  13. "browser": true,
  14. "node": true,
  15. "es2024": true
  16. },
  17. "plugins": ["@typescript-eslint", "react-hooks"],
  18. "extends": [
  19. "next/core-web-vitals",
  20. "eslint:recommended",
  21. "plugin:@typescript-eslint/recommended",
  22. "plugin:react-hooks/recommended"
  23. ],
  24. "rules": {
  25. "no-unused-vars": "off",
  26. "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
  27. "@typescript-eslint/consistent-type-imports": "warn",
  28. "@typescript-eslint/no-explicit-any": "warn",
  29. "react-hooks/exhaustive-deps": "warn"
  30. }
  31. }