Configure Stylelint with GOV.UK Frontend property order#1589
Merged
Conversation
315646e to
b1c29eb
Compare
|
paulrobertlloyd
approved these changes
Sep 15, 2025
Contributor
paulrobertlloyd
left a comment
There was a problem hiding this comment.
Love it! Should help keep diffs much more manageable.
anandamaryon1
approved these changes
Sep 15, 2025
Contributor
anandamaryon1
left a comment
There was a problem hiding this comment.
Nice
(will apply to my VS code now, and hopefully never have to push another fix linting commit again)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
This PR configures Stylelint using the GOV.UK Frontend config
These changes make sure to reduce the "diff" between our two repos
Missing properties have been added for flex, grid and column layouts (plus masks)
Automatic grouping
Support for automatic grouping was added in
stylelint-order@3.1.0usingemptyLineBefore: 'threshold'Sass files in NHS.UK frontend are
manuallynow automatically split up into groups:i.e. One less thing to fix manually when saving files
Format on save
Visual Studio code can be configured to automatically apply ESLint, Stylelint and Prettier formatting:
Checklist