-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build(deps-dev): Bump stylelint from 16.7.0 to 16.8.0 #40676
Conversation
@julien-deramond these are the new warnings. It's OK to ignore some of them, but it might be a good chance to revisit the duplicate selectors and its ignores in case we can reduce them. |
We analyzed the new warnings with @louismaximepiton. They are all false positives, as they are not duplicate selectors. They are all linked to dynamic selector names built with Sass variables, for instance AnalysisLet's consider the following code that raises a warning: @each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
.dropdown-menu#{$infix}-start {
--bs-position: start;
&[data-bs-popper] {
right: auto;
left: 0;
}
}
.dropdown-menu#{$infix}-end {
--bs-position: end;
&[data-bs-popper] {
right: 0;
left: auto;
}
}
}
} 🟢 If we use in our Sass code instead the generated CSS selectors, it works, for instance: .dropdown-menu-sm-start {
--bs-position: start;
}
.dropdown-menu-sm-start[data-bs-popper] {
right: auto;
left: 0;
}
.dropdown-menu-sm-end {
--bs-position: end;
}
.dropdown-menu-sm-end[data-bs-popper] {
right: 0;
left: auto;
} 🟢 If we insert back the @include media-breakpoint-up(map-get($grid-breakpoints, sm)) {
.dropdown-menu-sm-start {
--bs-position: start;
&[data-bs-popper] {
right: auto;
left: 0;
}
}
.dropdown-menu-sm-end {
--bs-position: end;
&[data-bs-popper] {
right: 0;
left: auto;
}
}
} 🔴 Then, the real issue can be reproduced by using a Sass variable to create a dynamic selector: $var-test: "fodjsifdsj" !default;
.dropdown-menu#{$var-test}-start {
--bs-position: start;
&[data-bs-popper] {
right: auto;
left: 0;
}
}
.dropdown-menu#{$var-test}-end {
--bs-position: end;
&[data-bs-popper] {
right: 0;
left: auto;
}
} A reduced reproduction use case: $var-test: "x" !default;
.a#{$var-test}-a {
&.b {
color: #fd0;
}
}
.a#{$var-test}-b {
&.b {
color: #fd0;
}
} We don't know what is the exact source of the issue, but an assumption would be that the parsing consider @XhmikosR We've created an issue in stylelint repo at stylelint/stylelint#7891. |
@XhmikosR Latest news, there's already a fix (see stylelint/stylelint#7891 (comment)). We just have to wait for the next release, and the warnings/errors will disappear without any modifications on our side. |
Bumps [stylelint](https://github.com/stylelint/stylelint) from 16.7.0 to 16.8.0. - [Release notes](https://github.com/stylelint/stylelint/releases) - [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md) - [Commits](stylelint/stylelint@16.7.0...16.8.0) --- updated-dependencies: - dependency-name: stylelint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
361f27f
to
42e0ffc
Compare
Thanks for the insights! I'm gonna go ahead and close this PR and wait for the upstream fix. |
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps stylelint from 16.7.0 to 16.8.0.
Release notes
Sourced from stylelint's releases.
Changelog
Sourced from stylelint's changelog.
Commits
19365ca
16.8.050478e6
Prepare 16.8.0 (#7870)8e5c8a3
Fixfunction-url-quotes
false positives for SCSS variables and#
/?
char...2d04511
Bump husky from 9.1.2 to 9.1.3 (#7886)118fe2b
Bump debug from 4.3.5 to 4.3.6 (#7885)1905e41
Bump rollup from 4.19.0 to 4.19.1 (#7884)ac73451
Document to add ecosystem test check in releasing task list (#7883)8fefd14
Refactor to use severity constants (#7882)cfe2bcf
Fixstylelint.utils.checkAgainstRule()
regression when both `reportNeedless...3024d75
Fix configuration comments within selector and value lists being ignored (#7839)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)