Skip to content

chore(deps): update dependency stylelint to v17#11841

Merged
RayBB merged 6 commits into
masterfrom
renovate/stylelint-17.x
Mar 31, 2026
Merged

chore(deps): update dependency stylelint to v17#11841
RayBB merged 6 commits into
masterfrom
renovate/stylelint-17.x

Conversation

@renovate

@renovate renovate Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
stylelint (source) ^16.22.0^17.0.0 age confidence

Release Notes

stylelint/stylelint (stylelint)

v17.6.0

Compare Source

It adds support for extending units in languageOptions, which then apply to rules like declaration-property-value-no-unknown, and fixes 2 bugs.

  • Added: support for extending units to languageOptions (#​9166) (@​jeddy3).
  • Fixed: missing ruleMetadata when linting multiple files with overrides (#​9154) (@​kovsu).
  • Fixed: custom-property-no-missing-var-function false positives for timeline-scope and animation-timeline (#​9164) (@​splincode).

v17.5.0

Compare Source

It deprecates two rule options, adds 1 rule option and fixes 7 bugs. We've also released 2.1.0 of our VS Code extension, which adds 8 new requested features, and our first release of the Stylelint Language Server.

v17.4.0

Compare Source

It adds 2 options to the rules and fixes 7 bugs.

v17.3.0

Compare Source

It fixes 17 bugs. 3 related to supporting calc() in declaration-property-value-no-unknown, and 13 performance ones that make Stylelint a further 3x faster when using the rules in our standard config.

v17.2.0

Compare Source

It fixes 7 bugs, including 5 performance ones that make Stylelint 7x faster and use 3x less memory on larger codebases such as design systems and monorepos. We also restructured our docs to create a contributor guide. If you'd like to help out and contribute to Stylelint, that's the place to start.

v17.1.1

Compare Source

It fixes 2 bugs.

v17.1.0

Compare Source

It fixes 5 bugs and adds the display-notation rule. Before we turn it on in our standard config, we'd like to hear the community's thoughts on which options to use.

v17.0.0

Compare Source

It contains 14 breaking changes, which we've detailed in the migrating to 17.0.0 guide. Additionally, it adds 3 options to the rules and fixes 9 bugs. We've also released compatible versions of our shared config, Visual Studio Code extension, Node.js Rule Tester and Jest preset.

  • Removed: CommonJS Node.js API (#​8859) (@​jeddy3).
  • Removed: output property in the Node.js API returned resolved object (#​8878) (@​jeddy3).
  • Removed: support for Node.js less than 20.19.0 (#​8867) (@​jeddy3).
  • Removed: GitHub formatter (#​8888) (@​jeddy3).
  • Removed: resolveNestedSelectors option from selector-class-pattern (#​8931) (@​jeddy3).
  • Removed: checkContextFunctionalPseudoClasses option from selector-max-id (#​8913) (@​jeddy3).
  • Changed: default fix mode to strict (#​8889) (@​jeddy3).
  • Changed: report to be consistent and predictable in how it handles the provided position arguments (#​8217) (@​romainmenke).
  • Changed: selector-max-* syntax rules for standard CSS nesting and modern functional pseudo-classes (#​8913) (@​jeddy3).
  • Changed: *-specificity semantic rules for standard CSS nesting (#​8913) (@​jeddy3).
  • Changed: no-duplicate-selectors and selector-no-qualifying-type for standard CSS nesting (#​8913) (@​jeddy3).
  • Changed: *-list rules to have consistent behaviour for vendor prefixes and case (#​8912) (@​jeddy3).
  • Changed: *-no-vendor-prefix rules to have consistent behaviour for their ignore*: [] secondary options (#​8924) (@​jeddy3).
  • Changed: declaration-property-max-values rule to have consistent behaviour for vendor prefixes (#​8926) (@​jeddy3).
  • Added: except: ["after-block"] to custom-property-empty-line-before (#​8921) (@​kovsu).
  • Added: except: ["after-block"] to declaration-empty-line-before (#​8910) (@​kovsu).
  • Added: ignoreSelectors: [] to no-duplicate-selectors (#​8883) (@​kovsu).
  • Fixed: Windows drive letter casing inconsistencies when matching patterns against file paths (#​8941) (@​adalinesimonian).
  • Fixed: CLI help to include TypeScript config files (#​8908) (@​kovsu).
  • Fixed: at-rule-descriptor-no-unknown false positives for declarations within feature-value-blocks (#​8868) (@​kovsu).
  • Fixed: declaration-block-no-redundant-longhand-properties false negatives for short and long combinations (#​8892) (@​nathannewyen).
  • Fixed: media-feature-name-no-unknown false positives for namespaced dollar variables and range context queries (#​8890) (@​kovsu).
  • Fixed: nesting-selector-no-missing-scoping-root false positives for CSS-in-JS (#​8905) (@​kovsu).
  • Fixed: no-invalid-position-declaration false negatives for embedded blocks (#​8907) (@​kovsu).
  • Fixed: selector-no-qualifying-type false negatives for :is/where() (#​8940) (@​romainmenke).
  • Fixed: selector-type-no-unknown false positives for MathML 4 tags (#​8874) (@​jeddy3).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn Unknown env config "store". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: stylelint-declaration-strict-value@1.10.11
npm error Found: stylelint@17.6.0
npm error node_modules/stylelint
npm error   dev stylelint@"^17.0.0" from the root project
npm error   peer stylelint@">=16.0.0" from stylelint-prettier@5.0.3
npm error   node_modules/stylelint-prettier
npm error     dev stylelint-prettier@"^5.0.3" from the root project
npm error
npm error Could not resolve dependency:
npm error peer stylelint@">=7 <=16" from stylelint-declaration-strict-value@1.10.11
npm error node_modules/stylelint-declaration-strict-value
npm error   dev stylelint-declaration-strict-value@"1.10.11" from the root project
npm error
npm error Conflicting peer dependency: stylelint@16.26.1
npm error node_modules/stylelint
npm error   peer stylelint@">=7 <=16" from stylelint-declaration-strict-value@1.10.11
npm error   node_modules/stylelint-declaration-strict-value
npm error     dev stylelint-declaration-strict-value@"1.10.11" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /runner/cache/others/npm/_logs/2026-03-31T10_10_17_564Z-eresolve-report.txt
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2026-03-31T10_10_17_564Z-debug-0.log

@renovate renovate Bot force-pushed the renovate/stylelint-17.x branch from e282b80 to 6f6cad5 Compare February 10, 2026 00:13
@RayBB

RayBB commented Feb 10, 2026

Copy link
Copy Markdown
Collaborator

I follow the migration guide to update to v17

Changes Made:

  1. .stylelintrc.json - Updated configuration for LESS nesting compatibility:
    • Disabled no-descending-specificity rule (set to null) - This rule is incompatible with LESS's nonstandard nesting syntax
    • Increased selector-max-specificity from "1,4,0" to "1,4,3" - Accounts for stylelint 17's new specificity calculation for the & nesting selector

  2. static/css/components/buttonCta.less - Fixed selector ordering:
    • Moved &--shell&--external selector after the base &--shell selectors to resolve descending specificity issues

  3. static/css/components/generic-dropper.less - Fixed inline disable comment placement:
    • Moved /* stylelint-disable selector-max-specificity */ comment before the .arrow selector declaration (was incorrectly placed after the selector started)

But it is still not working

@renovate renovate Bot force-pushed the renovate/stylelint-17.x branch from 20073c8 to d8acf79 Compare March 31, 2026 10:10
@renovate

renovate Bot commented Mar 31, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Removed extensions and plugins from stylelint configuration.
@RayBB

RayBB commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

Now that we don't have to worry about LESS this one became pretty simple.

@RayBB RayBB left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets go ahead and bump this down to a version that's more than a month old for security sake.

Comment thread .pre-commit-config.yaml Outdated
Comment thread package.json Outdated
@RayBB RayBB merged commit 4c7c913 into master Mar 31, 2026
8 checks passed
@RayBB RayBB deleted the renovate/stylelint-17.x branch March 31, 2026 10:30
IvanPisquiy06 pushed a commit to IvanPisquiy06/openlibrary that referenced this pull request Apr 27, 2026
* chore(deps): update dependency stylelint to v17

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Raymond Berger <RayBB@users.noreply.github.com>
@RayBB RayBB self-assigned this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant