no-require-imports
Configuration
rslint.config.ts
Rule Details
Disallow invocation of require().
Prefer the newer ES6-style imports over require(). TypeScript projects should use import statements which provide better type safety and editor tooling support.
Examples of incorrect code for this rule:
Examples of correct code for this rule: