.eslintrc.json 648 B

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