Describe the bugxstate/invoke-usage provides false positives when invoke is an array
Expected behaviorxstate/invoke-usage should handle array invoke definitions
Actual behavior
const machine = createMachine({
// eslint error: [eslint xstate/invoke-usage] [E] The value of the "invoke" property must be an object with a "src" property.
invoke: [{
src: () => () => {}
}],
});
Versions (please complete the following information):
Describe the bug
xstate/invoke-usage
provides false positives when invoke is an arrayExpected behavior
xstate/invoke-usage
should handle array invoke definitionsActual behavior
Versions (please complete the following information):