In the Python world there are multiple static code analysis tools that can be easily extended with custom checks via writing plugins or extensions, for example:
If I were you I would try to use something like ESLint. The ES stands for ECMAScript, which is where the rules for the JS language come from. Every single rule in ESLint is standalone (so you can use what you like), and you can use the default rules as a guideline or skeleton to create your own rule and plug it in.
Try ESLint.