Skip to content

Commit

Permalink
add prettier for non-go file formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chansyu committed Aug 27, 2024
1 parent 34417b1 commit 0b4a795
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
README.md
**.*.json
ui/static/js/[email protected]
ui/static/js/[email protected]
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"goTemplateBracketSpacing": true,
"plugins": ["prettier-plugin-go-template", "prettier-plugin-tailwindcss"]
}
120 changes: 120 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"devDependencies": {
"@tailwindcss/typography": "^0.5.14",
"daisyui": "^4.12.10",
"prettier": "^3.3.3",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwindcss": "^3.4.10"
}
}

0 comments on commit 0b4a795

Please sign in to comment.