no-namespace
Configuration
rslint.config.ts
Rule Details
Disallows the use of TypeScript namespace declarations. TypeScript historically allowed organizing code with custom namespace blocks, but ES2015 modules (using import/export) are the modern standard for code organization. Namespaces are generally considered outdated and should be replaced with modules. By default, this rule allows namespaces in .d.ts definition files, since they are commonly used there.
Examples of incorrect code for this rule:
Examples of correct code for this rule: