consistent-namespace
Enforces that imports from @praha/byethrow use a consistent namespace alias — either Result or R.
Rule details
When working with @praha/byethrow, you can import the namespace as either Result or R. Mixing both aliases in a project makes code inconsistent and harder to search. This rule enforces a single preferred alias and auto-fixes violations.
The default preferred namespace is Result.
Incorrect
Correct
Options
The rule accepts a single string option for the preferred namespace (default: "Result").
prefer R instead of Result:
