Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Rule request: minimal-namespace-depth #1987

Closed
JoshuaKGoldberg opened this issue Jan 5, 2017 · 2 comments
Closed

Rule request: minimal-namespace-depth #1987

JoshuaKGoldberg opened this issue Jan 5, 2017 · 2 comments

Comments

@JoshuaKGoldberg
Copy link
Contributor

TypeScript code being linted

// File one
namespace A.B.C1 {
    export const D = 7;
}

// File two
namespace A.B.C2 {
    // Could also be referenced by C1.D
    const copy = A.B.C1.D;
}

Expected behavior

The A.B.C1.D reference is unnecessary long, which leads to bloated source files and bloated output code. It would be beneficial for folks still in namespace land to have a rule that blocks using unnecessarily prefixed namespace paths.

@JoshuaKGoldberg
Copy link
Contributor Author

@andy-hanson does #2008 close this issue?

@andy-hanson
Copy link
Contributor

Yes, I mentioned this actually.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants