npm stylelint 18.1.0

2 hours ago

It runs the rules in multiple passes when autofixing so that fixes no longer introduce new problems, and it fixes 14 other bugs.

  • Fixed: fix introducing new problems in the CLI and Node.js API by running the rules in multiple passes (#9637) (@jeddy3).
  • Fixed: fix configuration property not writing the fixed code to files (#9662) (@ybiquitous).
  • Fixed: false positives and negatives after fix for comments within values, selectors and at-rule preludes (#9640) (@romainmenke).
  • Fixed: at-rule-no-deprecated autofix removing comments (#9658) (@jeddy3).
  • Fixed: custom-property-empty-line-before and declaration-empty-line-before false positives and negatives after autofixing (#9649) (@jeddy3).
  • Fixed: declaration-property-value-no-unknown, property-no-unknown and value-type-custom-property-required-list false negatives for rules nested within non-nesting at-rules (#9630) (@jeddy3).
  • Fixed: font-family-name-quotes autofix removing comments (#9648) (@jeddy3).
  • Fixed: function-url-quotes autofix for empty url() (#9646) (@jeddy3).
  • Fixed: import-notation autofix removing comments (#9644) (@jeddy3).
  • Fixed: media-feature-name-no-vendor-prefix false positives for names repeated inside the at-rule's block (#9643) (@jeddy3).
  • Fixed: relative-selector-nesting-notation autofix removing comments (#9659) (@jeddy3).
  • Fixed: selector-class-pattern, selector-max-type and selector-type-{case,no-unknown} false negatives for selector lists containing from or to outside @keyframes (#9669) (@jeddy3).
  • Fixed: selector-not-notation autofix for empty selectors (#9660) (@jeddy3).
  • Fixed: shorthand-property-no-redundant-values autofix removing comments (#9647) (@jeddy3).
  • Fixed: value-no-vendor-prefix autofix removing comments (#9645) (@jeddy3).

Don't miss a new stylelint release

NewReleases is sending notifications on new releases.