Skip to content

Commit

Permalink
style(shadcn-ui): use space instead of tab on config fixture (#1707)
Browse files Browse the repository at this point in the history
* style: use space instead of tab on config fixture

* style: fix identation on template script

* chore(shadcn-ui): add changeset

---------

Co-authored-by: shadcn <[email protected]>
  • Loading branch information
caiquecastro and shadcn committed Oct 16, 2023
1 parent 4083876 commit 46f247c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-badgers-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-ui": patch
---

fix code style
8 changes: 4 additions & 4 deletions packages/cli/src/utils/templates.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export const UTILS = `import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
`

export const UTILS_JS = `import { clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs) {
return twMerge(clsx(inputs))
}
Expand All @@ -22,7 +22,7 @@ module.exports = {
'./components/**/*.{<%- extension %>,<%- extension %>x}',
'./app/**/*.{<%- extension %>,<%- extension %>x}',
'./src/**/*.{<%- extension %>,<%- extension %>x}',
],
],
theme: {
container: {
center: true,
Expand Down Expand Up @@ -59,7 +59,7 @@ module.exports = {
'./components/**/*.{<%- extension %>,<%- extension %>x}',
'./app/**/*.{<%- extension %>,<%- extension %>x}',
'./src/**/*.{<%- extension %>,<%- extension %>x}',
],
],
theme: {
container: {
center: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/test/fixtures/next/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
],
],
theme: {
container: {
center: true,
Expand Down Expand Up @@ -73,4 +73,4 @@ module.exports = {
},
},
plugins: [require("tailwindcss-animate")],
}
}

0 comments on commit 46f247c

Please sign in to comment.