From fd324578d5c899db78cd675c48809badc94c5c6f Mon Sep 17 00:00:00 2001 From: Aurel Branzeanu Date: Thu, 9 Nov 2023 11:13:52 +0200 Subject: [PATCH] Replace stylelint-config-standard-scss plugin with stylelint-config-sass-guidelines --- .stylelintrc.json | 11 ++++++----- package.json | 2 +- yarn.lock | 48 +++++++++++++---------------------------------- 3 files changed, 20 insertions(+), 41 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 3a25d88f..d343945c 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,11 +1,12 @@ { - "extends": "stylelint-config-standard-scss", + "extends": "stylelint-config-sass-guidelines", "rules": { "font-family-no-missing-generic-family-keyword": [ true, - { - "ignoreFontFamilies": ["Genericons"] - } - ] + {"ignoreFontFamilies": ["Genericons"]} + ], + "selector-no-qualifying-type": null, + "selector-max-compound-selectors": 5, + "selector-max-id": 2 } } diff --git a/package.json b/package.json index 081f727a..affd370b 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,6 @@ "devDependencies": { "eslint": "^8.53.0", "stylelint": "^15.11.0", - "stylelint-config-standard-scss": "^11.1.0" + "stylelint-config-sass-guidelines": "^10.0.0" } } diff --git a/yarn.lock b/yarn.lock index 37a66ba6..23084be9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1078,12 +1078,12 @@ postcss-safe-parser@^6.0.0: resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz#bb4c29894171a94bc5c996b9a30317ef402adaa1" integrity sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ== -postcss-scss@^4.0.9: +postcss-scss@^4.0.6: version "4.0.9" resolved "https://registry.yarnpkg.com/postcss-scss/-/postcss-scss-4.0.9.tgz#a03c773cd4c9623cb04ce142a52afcec74806685" integrity sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A== -postcss-selector-parser@^6.0.13: +postcss-selector-parser@^6.0.11, postcss-selector-parser@^6.0.13: version "6.0.13" resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz#d05d8d76b1e8e173257ef9d60b706a8e5e99bf1b" integrity sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ== @@ -1288,44 +1288,22 @@ style-search@^0.1.0: resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902" integrity sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg== -stylelint-config-recommended-scss@^13.1.0: - version "13.1.0" - resolved "https://registry.yarnpkg.com/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-13.1.0.tgz#04e529ae0e9c1abb1e04de79258461c07811876f" - integrity sha512-8L5nDfd+YH6AOoBGKmhH8pLWF1dpfY816JtGMePcBqqSsLU+Ysawx44fQSlMOJ2xTfI9yTGpup5JU77c17w1Ww== +stylelint-config-sass-guidelines@^10.0.0: + version "10.0.0" + resolved "https://registry.yarnpkg.com/stylelint-config-sass-guidelines/-/stylelint-config-sass-guidelines-10.0.0.tgz#ace99689eb6769534c9b40d62e2a8562b1ddc9f2" + integrity sha512-+Rr2Dd4b72CWA4qoj1Kk+y449nP/WJsrD0nzQAWkmPPIuyVcy2GMIcfNr0Z8JJOLjRvtlkKxa49FCNXMePBikQ== dependencies: - postcss-scss "^4.0.9" - stylelint-config-recommended "^13.0.0" - stylelint-scss "^5.3.0" + postcss-scss "^4.0.6" + stylelint-scss "^4.4.0" -stylelint-config-recommended@^13.0.0: - version "13.0.0" - resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-13.0.0.tgz#c48a358cc46b629ea01f22db60b351f703e00597" - integrity sha512-EH+yRj6h3GAe/fRiyaoO2F9l9Tgg50AOFhaszyfov9v6ayXJ1IkSHwTxd7lB48FmOeSGDPLjatjO11fJpmarkQ== - -stylelint-config-standard-scss@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/stylelint-config-standard-scss/-/stylelint-config-standard-scss-11.1.0.tgz#53c2fb9423ed89c0921aa83479892a912cc1ca15" - integrity sha512-5gnBgeNTgRVdchMwiFQPuBOtj9QefYtfXiddrOMJA2pI22zxt6ddI2s+e5Oh7/6QYl7QLJujGnaUR5YyGq72ow== - dependencies: - stylelint-config-recommended-scss "^13.1.0" - stylelint-config-standard "^34.0.0" - -stylelint-config-standard@^34.0.0: - version "34.0.0" - resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-34.0.0.tgz#309f3c48118a02aae262230c174282e40e766cf4" - integrity sha512-u0VSZnVyW9VSryBG2LSO+OQTjN7zF9XJaAJRX/4EwkmU0R2jYwmBSN10acqZisDitS0CLiEiGjX7+Hrq8TAhfQ== +stylelint-scss@^4.4.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/stylelint-scss/-/stylelint-scss-4.7.0.tgz#f986bf8c5a4b93eae2b67d3a3562eef822657908" + integrity sha512-TSUgIeS0H3jqDZnby1UO1Qv3poi1N8wUYIJY6D1tuUq2MN3lwp/rITVo0wD+1SWTmRm0tNmGO0b7nKInnqF6Hg== dependencies: - stylelint-config-recommended "^13.0.0" - -stylelint-scss@^5.3.0: - version "5.3.1" - resolved "https://registry.yarnpkg.com/stylelint-scss/-/stylelint-scss-5.3.1.tgz#7f0f5f06d0a2a3c515aa71d3a8de3548045e03e1" - integrity sha512-5I9ZDIm77BZrjOccma5WyW2nJEKjXDd4Ca8Kk+oBapSO4pewSlno3n+OyimcyVJJujQZkBN2D+xuMkIamSc6hA== - dependencies: - known-css-properties "^0.29.0" postcss-media-query-parser "^0.2.3" postcss-resolve-nested-selector "^0.1.1" - postcss-selector-parser "^6.0.13" + postcss-selector-parser "^6.0.11" postcss-value-parser "^4.2.0" stylelint@^15.11.0: