stylelint-scss
Version:
A collection of SCSS-specific rules for Stylelint
45 lines (31 loc) • 631 B
Markdown
# at-use-no-redundant-alias
Disallow redundant namespace aliases.
```scss
"foo" as foo;
/** ↑
* Disallow this */
```
By default, the [module's namespace](https://sass-lang.com/documentation/at-rules/use/#loading-members)
is the last component of the module’s URL.
## Options
### `true`
The following patterns are considered warnings:
```scss
"foo" as foo;
```
```scss
"sass:math" as math;
```
```scss
"src/corners" as corners;
```
The following patterns are _not_ considered warnings:
```scss
"foo" as bar;
```
```scss
"sass:math";
```
```scss
"src/corners" as c;
```