Skip to content

Commit

Permalink
#9 Add word-wrap to obsolete rules (#10)
Browse files Browse the repository at this point in the history
* #9 Add word-wrap to obsolete rules

* #9 fixup

* #9 fix lint

* #9 refactor to meet code conventions

* #9 refactor to meet code conventions (2)
  • Loading branch information
otzelpov authored Oct 6, 2023
1 parent eba0670 commit e617646
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/rules/no-obsolete/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@ export const defaultOptions : Options =
search: 'blink'
}
},
{
name:
{
search: 'user-modify'
}
},
{
name:
{
Expand All @@ -235,7 +241,8 @@ export const defaultOptions : Options =
{
name:
{
search: 'user-modify'
search: 'word-wrap',
replace: 'overflow-wrap'
}
}
]
Expand Down
3 changes: 2 additions & 1 deletion tests/no-obsolete.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ describe('no-obsolete', () =>
'Unexpected "scroll-snap-type-y" property',
'Unexpected "text-decoration" value "blink"',
'Unexpected "text-decoration-line" value "blink"',
'Unexpected "user-modify" property',
'Expected "word-break" property to be "overflow-wrap"',
'Unexpected "user-modify" property'
'Expected "word-wrap" property to be "overflow-wrap"'
]
.map((message, index) =>
{
Expand Down
1 change: 1 addition & 0 deletions tests/providers/no-obsolete.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
text-decoration-line: blink;
word-break: break-word;
user-modify: unset;
word-wrap: normal;
}

0 comments on commit e617646

Please sign in to comment.