no-self-import
Configuration
rslint.config.ts
Rule Details
Disallows a module from importing itself. A module that imports itself creates a circular dependency on itself, which is always a mistake and can cause confusing runtime behavior or errors. This applies to both ES module import statements and CommonJS require() calls.
Examples of incorrect code for this rule:
Examples of correct code for this rule: