Custom Java Script rule

Hi All, we are trying to implement custom JavaScript rules as part of our development. Our goal is to build code to check for things like Variables should be declared before they are used and Reduce the possibility of unwanted re-declarations .

However, there is no documentation/explanation on the internet of what certain methods and plugins I can Use.Could anyone please provide some documentation/sample code which cover this Custom rule?

Hi there.

The rules you mention seem to already exist!

Variables should be defined before being used
Variables and functions should not be redeclared

That being said – for custom Javascript rules, we recommend writing Custom ESLint Rules and then Importing External Issues. The Java API for writing custom rules for Javascript is deprecated, but briefly dicussed in this documentation.