From 2bc22e9cdcecf1448ac3d4a23452a9905de9fbd9 Mon Sep 17 00:00:00 2001 From: Caique de Castro Date: Mon, 9 Oct 2023 11:25:44 -0300 Subject: [PATCH 1/3] style: use space instead of tab on config fixture --- packages/cli/test/fixtures/next/tailwind.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/test/fixtures/next/tailwind.config.js b/packages/cli/test/fixtures/next/tailwind.config.js index 0377ea1ded1..da23e8eecf2 100644 --- a/packages/cli/test/fixtures/next/tailwind.config.js +++ b/packages/cli/test/fixtures/next/tailwind.config.js @@ -6,7 +6,7 @@ module.exports = { './components/**/*.{ts,tsx}', './app/**/*.{ts,tsx}', './src/**/*.{ts,tsx}', - ], + ], theme: { container: { center: true, @@ -73,4 +73,4 @@ module.exports = { }, }, plugins: [require("tailwindcss-animate")], -} \ No newline at end of file +} From 91765d219feb5f4d82f9d0accbb20307cb7b52b0 Mon Sep 17 00:00:00 2001 From: Caique de Castro Date: Mon, 9 Oct 2023 11:30:23 -0300 Subject: [PATCH 2/3] style: fix identation on template script --- packages/cli/src/utils/templates.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/utils/templates.ts b/packages/cli/src/utils/templates.ts index 5af47c2f49a..94fb1d900c6 100644 --- a/packages/cli/src/utils/templates.ts +++ b/packages/cli/src/utils/templates.ts @@ -1,6 +1,6 @@ export const UTILS = `import { type ClassValue, clsx } from "clsx" import { twMerge } from "tailwind-merge" - + export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } @@ -8,7 +8,7 @@ export function cn(...inputs: ClassValue[]) { export const UTILS_JS = `import { clsx } from "clsx" import { twMerge } from "tailwind-merge" - + export function cn(...inputs) { return twMerge(clsx(inputs)) } @@ -22,7 +22,7 @@ module.exports = { './components/**/*.{<%- extension %>,<%- extension %>x}', './app/**/*.{<%- extension %>,<%- extension %>x}', './src/**/*.{<%- extension %>,<%- extension %>x}', - ], + ], theme: { container: { center: true, @@ -59,7 +59,7 @@ module.exports = { './components/**/*.{<%- extension %>,<%- extension %>x}', './app/**/*.{<%- extension %>,<%- extension %>x}', './src/**/*.{<%- extension %>,<%- extension %>x}', - ], + ], theme: { container: { center: true, From def72b3f6f2b2460d0c42bd49a1361c6541d16e4 Mon Sep 17 00:00:00 2001 From: shadcn Date: Mon, 16 Oct 2023 12:59:44 +0400 Subject: [PATCH 3/3] chore(shadcn-ui): add changeset --- .changeset/mean-badgers-grab.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/mean-badgers-grab.md diff --git a/.changeset/mean-badgers-grab.md b/.changeset/mean-badgers-grab.md new file mode 100644 index 00000000000..95f7f8b239b --- /dev/null +++ b/.changeset/mean-badgers-grab.md @@ -0,0 +1,5 @@ +--- +"shadcn-ui": patch +--- + +fix code style