Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Oct 18, 2023
1 parent 2e97098 commit d6fc472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/core/postprocess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ export function postprocessWithUnColor(unColor: string): Postprocessor {

export function importantProcess(): Postprocessor {
return (util) => {
util.entries.forEach(i => {
if(i[1] != null && !String(i[1]).includes('!important')){
util.entries.forEach((i) => {
if (i[1] != null && !String(i[1]).includes('!important'))
i[1] += ' !important'
}
})
}
}
Expand Down
1 change: 0 additions & 1 deletion test/postprocess.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ describe('presetUseful postprocess with important', () => {
const withOutImport = ['bg-red', 'text-blue']
const withInImport = ['!text-xl', 'sm:text-sm!', 'important-ma']


it('base', async () => {
const uno = generateUno({
important: true,
Expand Down

0 comments on commit d6fc472

Please sign in to comment.