When you import everything from a module, it becomes harder to know where a function
or a type comes from. The official guide even
recommends against importing everything.
config =
[ NoImportingEverything.rule []
]
Teams often have an agreement on the list of imports from which it is okay to expose everything, so
you can configure a list of exceptions.
Forbids importing everything from a module.
When you import everything from a module, it becomes harder to know where a function or a type comes from. The official guide even recommends against importing everything.
Teams often have an agreement on the list of imports from which it is okay to expose everything, so you can configure a list of exceptions.
Fail
Success
Try it out
You can try this rule out by running the following command: