Skip to content

Commit

Permalink
feat: use logical stylelint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanovandrey committed Dec 21, 2023
1 parent 066a771 commit f5d4e36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -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"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit f5d4e36

Please sign in to comment.