Skip to content

Conversation

@yerofey
Copy link
Contributor

@yerofey yerofey commented Sep 23, 2025

…nction

- Resolves 'Invalid hook call' error when running CLI globally
- Eliminates 'unsettled top-level await' warning
- Wraps render logic in async main() function to ensure proper React context
- Fixes issue sindresorhus#90
- Downgrade XO from 1.2.2 to 0.59.3 to avoid flat config issues
- Downgrade eslint-config-xo-react from 0.28.0 to 0.27.0 for compatibility
- Fix linting errors in cli.tsx:
  - Use proper error typing with unknown
  - Add ESLint disable comment for prefer-top-level-await rule
- All tests now pass successfully
@yerofey
Copy link
Contributor Author

yerofey commented Sep 23, 2025

Now it should be good

@sindresorhus sindresorhus merged commit 07991bd into sindresorhus:main Sep 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Invalid React hook call errors and top-level await warning after updating to v5.0.0 on macOS

2 participants