Skip to content

Commit

Permalink
Add Tailwind plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
billyjanitsch committed Oct 5, 2023
1 parent acf1ac1 commit 7798041
Show file tree
Hide file tree
Showing 4 changed files with 81 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'],
}
75 changes: 74 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.5.0"
},
"devDependencies": {
"@babel/core": "^7.22.11",
Expand Down

0 comments on commit 7798041

Please sign in to comment.