Skip to content

Commit

Permalink
Update Stylelint config to check property order
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 19, 2023
1 parent bc5d953 commit 3cc837b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"extends": "stylelint-config-gds/scss"
"extends": "stylelint-config-gds/scss",
"ignoreFiles": ["_site/**/*.{css,scss}"],
"plugins": ["stylelint-order"],
"rules": {
"order/properties-alphabetical-order": true
}
}
25 changes: 24 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"rimraf": "^5.0.5",
"rollup": "^4.4.0",
"stylelint": "^15.0.0",
"stylelint-config-gds": "^1.0.0"
"stylelint-config-gds": "^1.0.0",
"stylelint-order": "^6.0.4"
},
"optionalDependencies": {
"govuk-prototype-kit": "^13.14.1"
Expand Down

0 comments on commit 3cc837b

Please sign in to comment.