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

Action creators within enqueueActions causing a lint error false positive #29

Open rjchow opened 1 month ago

rjchow commented 1 month ago

Describe the bug

This should not cause a lint error as per the V5 update guidance:

enqueueActions( ( { enqueue } ) => {
    enqueue( assign() );
}

Versions (please complete the following information):

Additional context Just need to update https://github.com/rlaffers/eslint-plugin-xstate/blob/9988c15a5c739779837687d752b477d8fa9764b8/lib/rules/no-imperative-action.js#L13