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" },