Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 558 Bytes

File metadata and controls

38 lines (28 loc) · 558 Bytes

at-use-no-redundant-alias

By default, the module's namespace is just the last component of the module’s URL. This rule is to disallow redundant namespace aliases.

@use "foo" as foo;
/**           ↑
 * Disallow this */

The following patterns are considered warnings:

@use "foo" as foo;
@use "sass:math" as math;
@use "src/corners" as corners;

The following patterns are not considered warnings:

@use "foo" as bar;
@use "sass:math";
@use "src/corners" as c;