Skip to content

Commit

Permalink
feat(#1): Add prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
gautegf committed Sep 17, 2025
1 parent 66add34 commit 6624bc3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
17 changes: 17 additions & 0 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"devDependencies": {
"prettier": "^3.6.2",
"vite": "^7.1.2"
}
}
10 changes: 10 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import("prettier").Config} */
const config = {
semi: false,
singleQuote: true,
trailingComma: 'none',
useTabs: false,
tabWidth: 2
}

export default config

0 comments on commit 6624bc3

Please sign in to comment.