Skip to content

Commit

Permalink
Use prettier-plugin-tailwindcss for js files only
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jul 30, 2024
1 parent 21c4246 commit d40125b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"proseWrap": "always",
"plugins": ["prettier-plugin-tailwindcss"]
"overrides": [
{
"files": "*.js",
"options": {
"plugins": ["prettier-plugin-tailwindcss"]
}
}
]
}
2 changes: 1 addition & 1 deletion scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ while getopts c option; do
esac
done

npx [email protected] --$op --no-config "./src/**/*.md" "./src/**/*.mdx"
npx [email protected] --$op "./src/**/*.md" "./src/**/*.mdx"

0 comments on commit d40125b

Please sign in to comment.