My pre-commit hook complained because the original code had an import that looked like var module = require("module")
. The permitted ways to import are: import foo = require('foo')
and “ES2015-style imports” which (I think) is defined in this part of the MDN web docs. I wonder when this rule was inserted…