Skip to content

Commit eea8b54

Browse files
committed
Run perfectionist at end of PostCSS chain in place of stylefmt
1 parent 4a74f31 commit eea8b54

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'path'
22

33
import _ from 'lodash'
44
import postcss from 'postcss'
5-
import stylefmt from 'stylefmt'
5+
import perfectionist from 'perfectionist'
66

77
import registerConfigAsDependency from './lib/registerConfigAsDependency'
88
import substituteTailwindPreflightAtRule from './lib/substituteTailwindPreflightAtRule'
@@ -41,7 +41,15 @@ const plugin = postcss.plugin('tailwind', config => {
4141
substituteResponsiveAtRules(lazyConfig),
4242
substituteScreenAtRules(lazyConfig),
4343
substituteClassApplyAtRules(lazyConfig),
44-
stylefmt,
44+
perfectionist({
45+
cascade: false,
46+
colorShorthand: false,
47+
indentSize: 2,
48+
maxSelectorLength: 1,
49+
maxValueLength: false,
50+
trimLeadingZero: false,
51+
trimTrailingZeros: false,
52+
}),
4553
]
4654
)
4755
})

0 commit comments

Comments
 (0)