Skip to content

Commit

Permalink
Add basic prettier configuration (#13)
Browse files Browse the repository at this point in the history
* feat: add basic prettier configuration

* chore: adjust formatting on config itself
  • Loading branch information
niccofyren authored Sep 22, 2024
1 parent 35b3773 commit 8d0b2c1
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro"],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@
"astro": "^4.15.6",
"tailwindcss": "^3.4.11",
"typescript": "^5.6.2"
},
"devDependencies": {
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1"
}
}
59 changes: 53 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit 8d0b2c1

Please sign in to comment.