mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
Update Stylelint rules
Enable `scss/selector-no-union-class-name`
This commit is contained in:
parent
400b8a6754
commit
4d6dd31379
@ -3,6 +3,9 @@
|
|||||||
"stylelint-config-twbs-bootstrap/scss"
|
"stylelint-config-twbs-bootstrap/scss"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"function-blacklist": [
|
||||||
|
"calc"
|
||||||
|
],
|
||||||
"property-blacklist": [
|
"property-blacklist": [
|
||||||
"border-radius",
|
"border-radius",
|
||||||
"border-top-left-radius",
|
"border-top-left-radius",
|
||||||
@ -11,12 +14,12 @@
|
|||||||
"border-bottom-left-radius",
|
"border-bottom-left-radius",
|
||||||
"transition"
|
"transition"
|
||||||
],
|
],
|
||||||
"function-blacklist": ["calc"],
|
|
||||||
"scss/dollar-variable-default": [
|
"scss/dollar-variable-default": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
"ignore": "local"
|
"ignore": "local"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"scss/selector-no-union-class-name": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -155,6 +155,7 @@
|
|||||||
$next: breakpoint-next($breakpoint, $grid-breakpoints);
|
$next: breakpoint-next($breakpoint, $grid-breakpoints);
|
||||||
$infix: breakpoint-infix($next, $grid-breakpoints);
|
$infix: breakpoint-infix($next, $grid-breakpoints);
|
||||||
|
|
||||||
|
// stylelint-disable-next-line scss/selector-no-union-class-name
|
||||||
&#{$infix} {
|
&#{$infix} {
|
||||||
@include media-breakpoint-up($next) {
|
@include media-breakpoint-up($next) {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user