At the moment, the ESLint rules as implemented rely on cursory selectors to identify certain constructs, which might be insufficient for identifying the same constructs defined via other valid means. For instance, the following selector is used to select choreographic variables:
since the Choreography type is aliased with MyType. This problem can be fixed by rewriting the rules to use resolved type information provided by TypeScript's typechecker API.
At the moment, the ESLint rules as implemented rely on cursory selectors to identify certain constructs, which might be insufficient for identifying the same constructs defined via other valid means. For instance, the following selector is used to select choreographic variables:
This will match choreographies declared as follows
But won't match the following
since the
Choreography
type is aliased withMyType
. This problem can be fixed by rewriting the rules to use resolved type information provided by TypeScript's typechecker API.