alchemyplatform / aa-sdk

https://www.alchemy.com/account-abstraction
MIT License
225 stars 122 forks source link

Use twoslash to create an eslint rule that validates jsdoc example tags #794

Open moldy530 opened 4 months ago

moldy530 commented 4 months ago

Once #793 is done, we can enforce that the example tags which contain twoslash directives in them compile appropriately using: import { twoslasher } from "@typescript/twoslash";

We can extend our eslint plugin rules to run this check and then appropriately throw lint errors when examples don't compile. This would protect us during refactors and makes sure that there are no typos in the examples