.eslintrc.json 590 B

12345678910111213141516171819202122232425262728
  1. {
  2. "extends": [
  3. "@antfu",
  4. "plugin:react-hooks/recommended"
  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. }
  28. }