Skip to content

Commit

Permalink
fix(stylelint-config): add stylelint-order package back in
Browse files Browse the repository at this point in the history
In `stylelint-config-sass-guidelines@10`, one breaking change was the
complete removal of the `stylelint-order` plugin due to lack of
community consensus on what preferred ordering should be.

bjankord/stylelint-config-sass-guidelines#278
  • Loading branch information
dannobytes committed Jul 5, 2023
1 parent 811b06f commit 83c2b68
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
24 changes: 21 additions & 3 deletions package-lock.json

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

1 change: 1 addition & 0 deletions packages/stylelint-config/package.json
Expand Up @@ -23,6 +23,7 @@
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-config-standard": "^29.0.0",
"stylelint-config-standard-scss": "^6.1.0",
"stylelint-order": "^6.0.3",
"stylelint-prettier": "^2.0.0"
},
"peerDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions packages/stylelint-config/src/index.js
Expand Up @@ -16,6 +16,10 @@ module.exports = {
'stylelint-config-prettier',
'stylelint-prettier/recommended',
],
plugins: [
// Enable ordering rules for content within declaration blocks.
'stylelint-order',
],
rules: {
// Until we migrate *all* our repos away from legacy node-sass to dart sass,
// we must continue defining alpha values with decimal numbers. Node-sass
Expand Down Expand Up @@ -107,6 +111,7 @@ module.exports = {
'rules',
],
],
'order/properties-alphabetical-order': true,

// Custom regex of ReadMe's current BEM selector class pattern.
'selector-class-pattern': [
Expand Down

0 comments on commit 83c2b68

Please sign in to comment.