rlaffers / eslint-plugin-xstate

ESLint plugin to check for common mistakes and enforce good practices when using XState.
MIT License
48 stars 4 forks source link

no-invalid-state-props doesn't allow exit at the root #17

Closed tivac closed 11 months ago

tivac commented 11 months ago

Describe the bug exit actions on the root of a state machine are flagged by the no-invalid-state-props rule, but they work exactly as expected when the machine is run using invoke from a parent machine so I don't think they should be marked as an error?

Expected behavior exit actions on the root of a machine are allowed by the rule.

Actual behavior exit actions on the root of the machine are flagged as invalid.

Versions (please complete the following information):

Additional context https://stackblitz.com/edit/eslint-plugin-xstate-exit-at-root?file=statechart.js

Use npm run lint in the terminal pane to see the rule incorrectly match.

rlaffers commented 11 months ago

Thanks for the report, this will be fixed shortly.

github-actions[bot] commented 11 months ago

:tada: This issue has been resolved in version 1.1.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: