Skip to content

Commit

Permalink
Add: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
stefkudla committed Oct 19, 2022
1 parent 8db92d5 commit ee93097
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 27 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Expose Astro dependencies for `pnpm` users
shamefully-hoist=true
auto-install-peers=true
11 changes: 11 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
plugins: [require.resolve("prettier-plugin-astro")],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"astro": "astro"
},
"dependencies": {
"@fontsource/nunito": "^4.5.11",
"astro": "^1.1.5",
"cosmicjs": "^4.2.10",
"date-fns": "^2.29.2",
Expand All @@ -21,6 +22,8 @@
"@astrojs/tailwind": "^1.0.0",
"@types/node": "^18.7.15",
"astro-robots-txt": "^0.3.8",
"prettier": "^2.7.1",
"prettier-plugin-astro": "^0.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down
85 changes: 58 additions & 27 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 ee93097

Please sign in to comment.