Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
feat(scss): add at-extend-no-missing-placeholder rule
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-lit committed Feb 3, 2021
1 parent 2855b37 commit 53d31d0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
39 changes: 20 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"stylelint-use-nesting": "^3.0.0"
},
"devDependencies": {
"@alexlit/lint-kit": "0.18.1"
"@alexlit/lint-kit": "0.19.0"
}
}
1 change: 1 addition & 0 deletions plugins/scss.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
plugins: ['stylelint-scss'],

rules: {
'scss/at-extend-no-missing-placeholder': true,
'scss/at-rule-no-unknown': [
true,
{
Expand Down
3 changes: 3 additions & 0 deletions test/scss.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
}
}

%sdf,
.sdf {
animation-name: skew;

Expand All @@ -39,6 +40,8 @@ a {
}

.ui-button {
@extend %sdf;

@include variables;

position: relative;
Expand Down

0 comments on commit 53d31d0

Please sign in to comment.