You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,9 +208,6 @@ let sorter = await createSorter({
208
208
let [sorted] =sorter.sortClassAttributes(['sm:bg-tomato bg-red-500'])
209
209
```
210
210
211
-
If you already know the formatter config file path, pass `formatterConfigPath` to infer
212
-
`base` automatically and improve warning messages.
213
-
214
211
### Using regex patterns
215
212
216
213
Like the `tailwindAttributes` option, the `tailwindFunctions` option also supports regular expressions to match multiple function names. Patterns should be enclosed in forward slashes. Note that JS regex literals are not supported with Prettier.
// Locate *explicit* v3 configs relative to the formatter config file
174
162
//
@@ -208,7 +196,7 @@ export async function getTailwindConfig(options: TailwindConfigOptions): Promise
208
196
// Warn them about this and use the bundled v4.
209
197
console.error(
210
198
'explicit-stylesheet-and-config-together',
211
-
formatterConfigPath,
199
+
base,
212
200
`You have specified a Tailwind CSS stylesheet and a Tailwind CSS config at the same time. Use stylesheetPath unless you are using v3. Preferring the stylesheet.`,
213
201
)
214
202
}
@@ -223,7 +211,7 @@ export async function getTailwindConfig(options: TailwindConfigOptions): Promise
223
211
mod=null
224
212
console.error(
225
213
'stylesheet-unsupported',
226
-
formatterConfigPath,
214
+
base,
227
215
'You have specified a Tailwind CSS stylesheet but your installed version of Tailwind CSS does not support this feature.',
0 commit comments