diff --git a/.changeset/map-maperror-to-mapboth.md b/.changeset/map-maperror-to-mapboth.md new file mode 100644 index 00000000..442d4627 --- /dev/null +++ b/.changeset/map-maperror-to-mapboth.md @@ -0,0 +1,5 @@ +--- +"@effect/tsgo": minor +--- + +Add `mapMapErrorToMapBoth` diagnostic (`TS377132`) to suggest using `Effect.mapBoth` instead of directly adjacent `Effect.map` and `Effect.mapError`. diff --git a/README.md b/README.md index b3778c5c..986dc0d0 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ Some diagnostics are off by default or have a default severity of suggestion, bu
effectSucceedWithVoidflatMapConditionalToFilterOrFailflatMapToMapmapMapErrorToMapBothmapSomeToAsSomematchEffectToMapBothmatchEffectToMatch