After making adjustments to my TypeScript configuration, I am now encountering errors related to the no-namespace rule.
Here is how my current setup involving namespaces looks like:
Exporting classes within a namespace:
namespace MyNamespace {
export class Foo {}
export class Bar {}
}
Importing and accessing classes:
import MyNamespace from './my-namespace';
// access classes
MyNamespace.Foo;
MyNamespace.Bar;
I would like to switch to using ES2015 modules as recommended (without simply disabling the rule). Is there a way to accomplish this while retaining my existing import syntax? I'm not a fan of the syntax
import {Foo, Bar} from './my-namespace'
.