eslint-plugin-xstate icon indicating copy to clipboard operation
eslint-plugin-xstate copied to clipboard

Action creators within enqueueActions causing a lint error false positive

Open rjchow opened this issue 9 months ago • 0 comments

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):

  • Node version: 20
  • ESLint version: 8
  • eslint-plugin-xstate version: 3.2.1

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

rjchow avatar May 24 '24 06:05 rjchow