Path: blob/main/docs/rules/no-namespace.md
829 views
import/no-namespace
Enforce a convention of not using namespace (a.k.a. "wildcard" *) imports.
+(fixable) The --fix option on the [command line] automatically fixes problems reported by this rule, provided that the namespace object is only used for direct member access, e.g. namespace.a. The --fix functionality for this rule requires ESLint 5 or newer.
Options
This rule supports the following options:
ignore: array of glob strings for modules that should be ignored by the rule.
Rule Details
Valid:
Invalid:
When Not To Use It
If you want to use namespaces, you don't want to use this rule.