ESLint: Require statement not part of import statement.(@typescript-eslint/no-var-requires)
you can disable this check in eslintrc.js
file
module.exports = {
...
rules: {
...
'@typescript-eslint/no-var-requires': 0,
}
}
It's also possible to disable it for individual files, instead of globally disabling it for the whole project.
Add at the top of the file:
/* eslint @typescript-eslint/no-var-requires: "off" */