Closed ts-candide closed 9 months ago
Thanks for the report, I will look at it soon (ish).
@ts-candide The version you are using is not compatible with xstate v5. Please use eslint-plugin-xstate@next.
Version 3.2.1 of this plugin now supports xstate v5.
Describe the bug
XState v5 has renamed the
cond
property toguard
for guarded transitions. This plugin reportsguard
as an invalid transition property when placed inside aninvoke.onDone
array.Expected behavior
No error when using
guard
as a transition property inside aninvoke.onDone
array.Actual behavior
An ESLint error is shown when using
guard
as a transition property inside aninvoke.onDone
array.Versions (please complete the following information):
Additional context
Here is some sample machine config:
The
guard
property is being marked as invalid here.