You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case a node has two or more magic namespace comments, both the @tilework/mosaic/no-duplicate-namespaces and @tilework/mosaic/use-namespace ESLint rules are not working as expected.
Example flow:
Given this code (both namespaces are incorrect):
The invalid namespace is still present and neither of @tilework/mosaic/no-duplicate-namespaces or @tilework/mosaic/use-namespace ESLint rules treat this as an error.
Proposed solution:
ESLint rule @tilework/mosaic/no-duplicate-namespaces should throw an error if more than one namespace is present on a single node, and should remove one of them.
The text was updated successfully, but these errors were encountered:
In case a node has two or more magic namespace comments, both the
@tilework/mosaic/no-duplicate-namespaces
and@tilework/mosaic/use-namespace
ESLint rules are not working as expected.Example flow:
Given this code (both namespaces are incorrect):
When the ESLint finished running, the actual output is:
The invalid namespace is still present and neither of
@tilework/mosaic/no-duplicate-namespaces
or@tilework/mosaic/use-namespace
ESLint rules treat this as an error.Expected output:
Proposed solution:
ESLint rule
@tilework/mosaic/no-duplicate-namespaces
should throw an error if more than one namespace is present on a single node, and should remove one of them.The text was updated successfully, but these errors were encountered: