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

Support for definitions via the `setup` function #28

Open kkelk opened 4 months ago

kkelk commented 4 months ago

The xstate documentation's recommended approach for specifying types in Typescript is to use the setup function. This then chains into a normal createMachine call, but this pattern is not currently detected by eslint-plugin-xstate.

rlaffers commented 3 months ago

Hi @kkelk what is your specific code where you are getting an ESLint error, or else hope to get an ESLint error?