DEV Community

saratchandrapj
saratchandrapj

Posted on

1 1

Custom Tslint rule on Array.findIndex()

I'm trying to implement a rule on array.findIndex() so that developer is enforced to check the findIndex value every time he uses it to splice the array.

I'm able to create the rule and it is showing the popup and also showing as error when i give ng lint.

But how can provide a fix to this issue?

if the fix is not provided then every time developer use the findIndex (even though check value is > 0 or not) he will get the error/warning in ng lint.

Kindly suggest if is any other work around to create or extent a lint rule on extentions.

Thanks

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free โ†’

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay