From e9f171adbdc87ca9167dcab64463719f150789b4 Mon Sep 17 00:00:00 2001 From: Hyunbin <47051820+hyunbinseo@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:21:08 +0900 Subject: [PATCH 1/2] chore: sort classnames with prettier --- .prettierrc | 7 ++ README.md | 6 +- index.html | 36 ++++----- kitchen-sink.html | 22 +++--- package-lock.json | 196 ++++++++++++++++++++++++++++++++++------------ package.json | 11 +-- src/index.d.ts | 4 +- 7 files changed, 192 insertions(+), 90 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..9df27f6 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "printWidth": 100, + "semi": false, + "singleQuote": true, + "trailingComma": "es5", + "plugins": ["prettier-plugin-tailwindcss"] +} diff --git a/README.md b/README.md index 56395c9..d20b50d 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Every element has been normalized/reset to a simple visually consistent style th ```html - @@ -70,9 +70,9 @@ More customization examples and best practices coming soon. In addition to the global styles, we also generate a set of corresponding classes which can be used to explicitly apply the form styles to an element. This can be useful in situations where you need to make a non-form element, such as a `
`, look like a form element. ```html - + - diff --git a/index.html b/index.html index 7dbeb87..551cbf3 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + @@ -7,8 +7,8 @@ -
-
+
+

@tailwindcss/forms examples

@@ -41,7 +41,7 @@

Unstyled

@@ -151,13 +151,13 @@

Underline

When is your event? @@ -178,7 +178,7 @@

Underline

@@ -196,7 +196,7 @@

Solid

Full name @@ -204,7 +204,7 @@

Solid

Email address @@ -212,13 +212,13 @@

Solid

When is your event? @@ -239,7 +239,7 @@

Solid

diff --git a/kitchen-sink.html b/kitchen-sink.html index 656835c..2b98657 100644 --- a/kitchen-sink.html +++ b/kitchen-sink.html @@ -1,4 +1,4 @@ - + @@ -7,13 +7,13 @@ -
-
+
+

Reset styles

These are form elements this plugin styles by default.

-
+
-
+

Untouched

These are form elements we don't handle (yet?), but we use this to make sure we haven't accidentally styled them by mistake.

-
+