Skip to content

Commit

Permalink
Add Tailwind plugin (#6)
Browse files Browse the repository at this point in the history
* Add Tailwind plugin

* Upgrade plugin to 0.6.0
  • Loading branch information
billyjanitsch authored Jun 4, 2024
1 parent 22bd879 commit b56ccff
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 2 deletions.
3 changes: 3 additions & 0 deletions fixtures/tailwind.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function Counter(): JSX.Element {
return <div className="m-1 mx-2">foo</div>
}
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ module.exports = {
printWidth: 100,
semi: false,
singleQuote: true,
plugins: ['prettier-plugin-tailwindcss'],
tailwindFunctions: ['clsx'],
}
77 changes: 76 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"author": "Kensho Technologies, LLC.",
"license": "Apache-2.0",
"peerDependencies": {
"prettier": "^3.0.0"
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.6.0"
},
"devDependencies": {
"@babel/core": "^7.24.6",
Expand Down

0 comments on commit b56ccff

Please sign in to comment.