Creating a new ESLint rule
Coding practices are best enforced mechanically (i.e., with CI) rather than by convention (relying on code reviewers to notice/point them out).
So, when a need to prohibit a practice becomes apparent, a good way to solve it is by writing an ESLint rule, and using that rule in GitLab (or wherever).