You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xo v0.34.0 added the new rule @typescript-eslint/no-implicit-any-catch, but when running with Prettier enabled, Prettier will try and remove all type annotations on catch clause variables.
This is due to Prettier v2.0.x not having support for TypeScript 4, but xo v0.34.0 does. Upgrading to Prettier v2.1.x should solve the problem.
The text was updated successfully, but these errors were encountered:
To anyone else having this issue, you can use Yarn resolutions to apply a temporary fix. Add the following to your package.json and reinstall packages.
xo v0.34.0 added the new rule
@typescript-eslint/no-implicit-any-catch
, but when running with Prettier enabled, Prettier will try and remove all type annotations on catch clause variables.This is due to Prettier v2.0.x not having support for TypeScript 4, but xo v0.34.0 does. Upgrading to Prettier v2.1.x should solve the problem.
The text was updated successfully, but these errors were encountered: