Skip to content

Commit

Permalink
Setup prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Volcomix committed May 13, 2023
1 parent 47b2338 commit 9f7cd9d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"semi": false
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"format": "prettier . --cache",
"format:fix": "yarn format --write",
"format:check": "yarn format --check"
},
"devDependencies": {
"prettier": "^2.8.8",
"typescript": "^5.0.2",
"vite": "^4.3.2"
}
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ postcss@^8.4.23:
picocolors "^1.0.0"
source-map-js "^1.0.2"

prettier@^2.8.8:
version "2.8.8"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==

rollup@^3.21.0:
version "3.21.6"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.21.6.tgz#f5649ccdf8fcc7729254faa457cbea9547eb86db"
Expand Down

0 comments on commit 9f7cd9d

Please sign in to comment.