It would be cool if we could implement something similar or identical to ESLint's require-array-sort-compare, which warns against calling .sort() (with no arguments) on an array that is not an array ...
You might want to check out XO, which includes this plugin.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results