-
Notifications
You must be signed in to change notification settings - Fork 118
Configure Stylelint with GOV.UK Frontend property order #1589
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
Conversation
315646e to
b1c29eb
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! Should help keep diffs much more manageable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
(will apply to my VS code now, and hopefully never have to push another fix linting commit again)



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
[email protected]usingemptyLineBefore: '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