language-service icon indicating copy to clipboard operation
language-service copied to clipboard

Warn user when creating an `Effect<Effect<`

Open dudeofawesome opened this issue 7 months ago • 0 comments

What is the problem this feature would solve?

I've found that new Effect users can often end up creating Effects wrapped in Effects, which can lead to some confusion, especially when coming from promises, which will await down to the internal value in a single await.

What is the feature you are proposing to solve the problem?

It would be interesting if the LS plugin could generate an error/warning if it encounters an Effect<Effect<.

I'm a relatively new Effect user though, so maybe that's actually a type that has use?

What alternatives have you considered?

If this doesn't make sense here, maybe it could be implemented in the eslint plugin instead?

dudeofawesome avatar May 17 '25 00:05 dudeofawesome