.eslintrc.json 599 B

123456789101112131415161718192021222324252627282930
  1. {
  2. "extends": [
  3. "next",
  4. "@antfu"
  5. ],
  6. "rules": {
  7. "@typescript-eslint/consistent-type-definitions": [
  8. "error",
  9. "type"
  10. ],
  11. "no-console": "off",
  12. "indent": "off",
  13. "@typescript-eslint/indent": [
  14. "error",
  15. 2,
  16. {
  17. "SwitchCase": 1,
  18. "flatTernaryExpressions": false,
  19. "ignoredNodes": [
  20. "PropertyDefinition[decorators]",
  21. "TSUnionType",
  22. "FunctionExpression[params]:has(Identifier[decorators])"
  23. ]
  24. }
  25. ],
  26. "react-hooks/exhaustive-deps": "warn",
  27. "react/display-name": "warn"
  28. }
  29. }