.eslintrc.json 684 B

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