Skip to content

Commit 3f3b1b4

Browse files
authored
fix(stylelint-plugin): allow icon-size token in width and height (#125)
1 parent d20999a commit 3f3b1b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stylelint-plugin/rules/use-proper-token/token-map.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const PROPERTY_TOKEN_MAP = {
4242
'font-size': ['font-size'],
4343
'font-weight': ['font-weight'],
4444
gap: ['space'],
45-
height: [],
45+
height: ['icon-size'],
4646
inset: [],
4747
left: [],
4848
'letter-spacing': [],
@@ -69,7 +69,7 @@ const PROPERTY_TOKEN_MAP = {
6969
stroke: ['color-text', 'method-color-text'],
7070
'text-decoration-color': ['color-text', 'method-color-text'],
7171
top: [],
72-
width: [],
72+
width: ['icon-size'],
7373
}
7474

7575
module.exports = PROPERTY_TOKEN_MAP

0 commit comments

Comments
 (0)