From f5d4e36b972c0d4f011f47c2e8f8c4f98dfd5ebc Mon Sep 17 00:00:00 2001 From: martyanov-av Date: Thu, 21 Dec 2023 18:47:21 +0300 Subject: [PATCH] feat: use logical stylelint rule --- .stylelintrc | 9 +++++++-- package.json | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index 5135c9ad..7b6bbc76 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -1,3 +1,8 @@ { - "extends": ["@gravity-ui/stylelint-config", "@gravity-ui/stylelint-config/prettier"] -} + "extends": ["@gravity-ui/stylelint-config", "@gravity-ui/stylelint-config/prettier"], + "plugins": ["stylelint-use-logical"], + "rules": { + "csstools/use-logical": ["always", {"except": ["float", "width", "min-width", "max-width", "height", "min-height", "max-height"]}], + "declaration-colon-space-after": "always-single-line" + } +} \ No newline at end of file diff --git a/package.json b/package.json index b1e98218..bb708bde 100644 --- a/package.json +++ b/package.json @@ -117,6 +117,7 @@ "rimraf": "^5.0.1", "sass": "^1.66.1", "stylelint": "^15.10.3", + "stylelint-use-logical": "^2.1.0", "svgo": "2.8.0", "typescript": "^5.2.2" },