Custom TypeScript rules

Hi,

I was wondering if it’s possible to add custom rules for TypeScript using the JavaScript runner. I’m aware from looking online that TypeScript is implemented differently but because it’s based on JavaScript (in a sense) could you add the rules to the JavaScript runner and somehow load in the TypeScript objects/source?

Thanks

Anyone got an idea on this? Even if it’s just that it’s not possible.
Thanks :smiley:

hello @alexdgft,

currently we are migrating our TypeScript analyzer to be based on ESLint. The best way to have custom rules for TypeScript would be to implement them as ESLint rule and import the report as external issues.

Have a look on https://typescript-eslint.io for further information how to write TypeScript rules for ESLint.

2 Likes

Thanks Tibor, I’ll take a look.