Skip to content

Commit

Permalink
feat: vue sfc css rule
Browse files Browse the repository at this point in the history
  • Loading branch information
haiweilian committed Nov 1, 2024
1 parent 9cd4c45 commit f3c8b82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stylelint-config-basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default {
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: [/deep/],
ignorePseudoClasses: ['deep', 'global', 'slotted'],
},
],
},
Expand Down
12 changes: 12 additions & 0 deletions tests/vue/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,16 @@ code {
background-color: #eee;
border-radius: 4px;
}

:deep(.text) {
color: red;
}

:global(.text) {
color: red;
}

:slotted(.text) {
color: red;
}
</style>

0 comments on commit f3c8b82

Please sign in to comment.