From 0770fbfe425ee9671a576af070bbcac0042e49aa Mon Sep 17 00:00:00 2001 From: firefoxic Date: Wed, 15 May 2024 18:41:26 +0300 Subject: [PATCH] Allow units at zero length --- CHANGELOG.md | 4 ++++ stylelint.config.js | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5cb629..a0300c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and  ## [Unreleased] +### Fixed + +- Zero length value no longer requires no units in all cases. + ## [1.0.0] — 2024–05–07 ### Added diff --git a/stylelint.config.js b/stylelint.config.js index ec988c3..e0e8011 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -51,17 +51,6 @@ export default { "keyframe-block-no-duplicate-selectors": true, "keyframe-declaration-no-important": true, "keyframe-selector-notation": `percentage-unless-within-keyword-only-block`, - "length-zero-no-unit": [ - true, - { - ignore: [`custom-properties`], - ignoreFunctions: [ - `calc`, - `var`, - `/^--/`, - ], - }, - ], "max-nesting-depth": [ 2, {