Skip to content

Commit

Permalink
chore(lint): re-add stylelint-order
Browse files Browse the repository at this point in the history
this was removed in ec6822f due to
updating stylelint-config-sass-guidelines

re-adding per bjankord/stylelint-config-sass-guidelines#278
  • Loading branch information
LeoMcA committed May 26, 2023
1 parent 4ce580c commit e215d4a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .stylelintrc.json
Expand Up @@ -6,7 +6,7 @@
"stylelint-prettier/recommended",
"stylelint-config-prettier"
],
"plugins": ["stylelint-scss"],
"plugins": ["stylelint-scss", "stylelint-order"],
"rules": {
"a11y/media-prefers-reduced-motion": null,
"a11y/no-outline-none": null,
Expand All @@ -18,6 +18,29 @@
"no-descending-specificity": null,
"no-invalid-position-at-import-rule": null,
"no-irregular-whitespace": null,
"order/order": [
[
"custom-properties",
"dollar-variables",
{
"type": "at-rule",
"name": "extend"
},
{
"type": "at-rule",
"name": "include",
"hasBlock": false
},
"declarations",
{
"type": "at-rule",
"name": "include",
"hasBlock": true
},
"rules"
]
],
"order/properties-alphabetical-order": true,
"property-no-vendor-prefix": null,
"selector-class-pattern": null,
"selector-max-compound-selectors": null,
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -228,6 +228,7 @@
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-recommended": "^12.0.0",
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-order": "^6.0.3",
"stylelint-prettier": "^3.0.0",
"stylelint-scss": "^5.0.0",
"swr": "^2.1.5",
Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Expand Up @@ -10943,6 +10943,11 @@ postcss-selector-parser@^6.0.10, postcss-selector-parser@^6.0.11, postcss-select
cssesc "^3.0.0"
util-deprecate "^1.0.2"

postcss-sorting@^8.0.2:
version "8.0.2"
resolved "https://registry.yarnpkg.com/postcss-sorting/-/postcss-sorting-8.0.2.tgz#6393385ece272baf74bee9820fb1b58098e4eeca"
integrity sha512-M9dkSrmU00t/jK7rF6BZSZauA5MAaBW4i5EnJXspMwt4iqTh/L9j6fgMnbElEOfyRyfLfVbIHj/R52zHzAPe1Q==

postcss-svgo@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-6.0.0.tgz#7b18742d38d4505a0455bbe70d52b49f00eaf69d"
Expand Down Expand Up @@ -12699,6 +12704,14 @@ stylelint-config-sass-guidelines@^10.0.0:
postcss-scss "^4.0.6"
stylelint-scss "^4.4.0"

stylelint-order@^6.0.3:
version "6.0.3"
resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-6.0.3.tgz#160b78650bd90463241b992581efee7159baefc2"
integrity sha512-1j1lOb4EU/6w49qZeT2SQVJXm0Ht+Qnq9GMfUa3pMwoyojIWfuA+JUDmoR97Bht1RLn4ei0xtLGy87M7d29B1w==
dependencies:
postcss "^8.4.21"
postcss-sorting "^8.0.2"

stylelint-prettier@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/stylelint-prettier/-/stylelint-prettier-3.0.0.tgz#57028b99866ed4c3ae045ddd891bf9a77d274726"
Expand Down

0 comments on commit e215d4a

Please sign in to comment.