Skip to content

Commit

Permalink
Enable two new Sass at-rules: @forward and @use.
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins committed Oct 22, 2019
1 parent a568697 commit 5d902cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rules/at-rule-no-unknown/__tests__/index.js
Expand Up @@ -85,6 +85,9 @@ testRule(rule, {
{
code: ".foo { color: red; @nest .parent & { color: blue; } }"
},
{
code: '@forward "functions";'
},
{
code: "@function foo () {}"
},
Expand All @@ -99,6 +102,9 @@ testRule(rule, {
},
{
code: "@if ($i) {} @else if {} @else {}"
},
{
code: '@use "bootstrap";'
}
],

Expand Down
2 changes: 2 additions & 0 deletions src/rules/at-rule-no-unknown/index.js
Expand Up @@ -12,13 +12,15 @@ const sassAtRules = [
"error",
"extend",
"for",
"forward",
"function",
"if",
"import",
"include",
"media",
"mixin",
"return",
"use",
"warn",
"while"
];
Expand Down

0 comments on commit 5d902cf

Please sign in to comment.