From 0ff7218aad93d55583bd0a36460b7db6422b0522 Mon Sep 17 00:00:00 2001 From: Roni Laukkarinen Date: Thu, 1 Jun 2023 17:12:10 +0300 Subject: [PATCH] Update nesting rules --- .stylelintrc | 8 +++++++- CHANGELOG.md | 5 ++++- package.json | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index b21fdbd..6a4e2b6 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -108,6 +108,9 @@ "no-unknown-animations": true, "shorthand-property-no-redundant-values": true, "declaration-block-single-line-max-declarations": 1, + "unit-disallowed-list": [ + "%" + ], "value-keyword-case": [ "lower", { @@ -162,11 +165,14 @@ ], "no-descending-specificity": null, "max-nesting-depth": [ - 3, + 2, { "ignore": [ "blockless-at-rules", "pseudo-classes" + ], + "ignoreAtRules": [ + "media" ] } ], diff --git a/CHANGELOG.md b/CHANGELOG.md index 2513800..90bc424 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ -### [Unreleased] +### 2.5.4: 2023-06-01 * Add rule `"number-leading-zero": "never",` +* Disallow using of percents +* Make default nesting depth 2 +* Add ignoreAtRules to nesting rules ### 2.5.3: 2023-02-15 diff --git a/package.json b/package.json index 68127de..b228fe6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "PROJECTNAME", - "version": "2.5.3", + "version": "2.5.4", "description": "PROJECTNAME powered by dudestack + devpackages", "author": "Digitoimisto Dude Oy (moro@dude.fi)", "devDependencies": { @@ -67,4 +67,4 @@ "webpack": "^5.75.0", "webpack-stream": "^7.0.0" } -} +} \ No newline at end of file