How can I write or extends new plugin for javascript/typescript code?

Hi team,

I want to write a plugin to detect some text, for example searching for words or regex on Javascript/Typescript Project

I do search but it seems can not do write new plugin for Javascript/Typescript.

I try to extends some current rules but can not?

How can I do it?

Thanks,

Hey there.

As noted in the docs:

Custom rules for JS/TS

Custom rules are not supported by the analyzer. As an alternative we suggest you to have a look at ESLint, it provides custom rules that you can then import thanks to the External Issues feature.

Alternatively, you can build whatever tool you like and as long as you end up with a report in the generic issue format, pass this to the scanner and have the issues displayed.