jshint - Create custom warnings/rules
You should consider using ESLint in that case.
Every rule is standalone. Even the default rules. So you could take one of the default rules as a blueprint, and write your own.
There's some vague reference to how to do this in the jshint-next project on GitHub, which was apparently merged back into jshint proper at some point.
https://github.com/jshint/jshint-next/wiki/Design