Update versions of Stylelint dependencies.
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | 2910706-26.patch | 46.45 KB | joelpittet |
| #21 | 2910706-21.patch | 46.46 KB | alexpott |
| #21 | 18-21-interdiff.txt | 10.61 KB | alexpott |
| #18 | 2910706-18.patch | 37.61 KB | yogeshmpawar |
| #14 | 2910706-14.patch | 37.6 KB | joelpittet |
Comments
Comment #2
droplet commentedComment #3
droplet commentedComment #4
joelpittet@droplet, would you mind doing a reroll and putting the commands you used to update in the Issue Summary? There is an 8.4 available now and I don't know how fast we want to chase head?
Comment #5
droplet commentedFor patch:
git reset --hard && yarn add -D stylelint stylelint-checkstyle-formatter stylelint-config-standard stylelint-no-browser-hacks && git diff > update-stylelint-packages.patchFor daily usages:
yarn upgrade-interactive --latest(this command may not update the package.json if you runnnig an old version of Yarn)
For Stylelint, I think we only have to patch dev branch, once at the very end of a major release.
In some case, if we running sprite for issues like this #2866801: Update stylelint rules color-hex-length to be consistent with Drupal's CSS standards, we should keep it up-to-date to introduce more autofix for everyone. :p
Comment #6
droplet commentedComment #8
joelpittetThanks for the commands @droplet, I reran them to double check the result. Setting this to RTBC.
Comment #9
joelpittetOh we may need to add a few more overwriting rules until we fix some of the lint errors:
no-descending-specificitycatches a lot.I'd suggest adding these, your thought?
Comment #11
joelpittetAdding those nulls in to make sure css:lint doesn't complain.
Comment #12
gappleComment #14
joelpittetLooks like two packages are updated already.
stylelint-checkstyle-formatterandstylelint-no-browser-hacksThe versions haven't changed in this patch.
Also one less NULL
Removed because it doesn't fail anymore.
Comment #15
gappleComment #17
yogeshmpawarComment #18
yogeshmpawarRe-rolled the patch against 8.6.x branch because #14 patch failed to apply.
Comment #19
joelpittetThanks, I diffed the diffs and there is only patch context lines, back to RTBC.
Comment #20
alexpottStylelint is on 9.1.1 now.
Comment #21
alexpottAlso a regression snuck into banner.css in umami. Fixing here so we have a clean run of the linting standards. It is a whitespace only change to very easy to review.
Comment #22
joelpittetBack to RTBC.
Here's the upstream changes between core and the latest for those interested
https://github.com/stylelint/stylelint/compare/7.13.0...9.1.1
Comment #23
joelpittetComment #24
MixologicAlso, this issue is blocking #2866840: Use stylelint as opposed to csslint in DrupalCI
Comment #26
joelpittetIt applies with fuzz with
patch -p1, failed on git apply. Here's a reroll and minor version change on the standard.The linter runs without any errors still.
The change updates a dependency:
https://github.com/stylelint/stylelint-config-standard/compare/18.1.0......
Which is here:
https://github.com/stylelint/stylelint-config-recommended/compare/2.0.0....
Which removes
declaration-block-no-redundant-longhand-propertieswhich appears to have an attempt to be removed before.Comment #27
alexpottCommitted and pushed 8b5cbee4fb to 8.6.x and ee7970c481 to 8.5.x. Thanks!
I've backported this to 8.5.x because this is only about linting CSS and the core package.json is not API. Plus this will unblock DrupalCI linting.
Comment #30
joelpittetSweet! 🍬