Skip to content

Commit

Permalink
chore: set up prettier for code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Nov 8, 2024
1 parent e8bed07 commit 7064e4e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ignore artifacts:
dist
coverage

*.yaml
*.yml
.pnpm-store
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 80,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
"main": "dist/main.js",
"scripts": {
"build": "tsc",
"start": "pnpm run build && node dist/main.js"
"start": "pnpm run build && node dist/main.js",
"lint": "prettier --check .",
"format": "prettier --write ."
},
"dependencies": {
"dotenv": "^16.4.5",
"express": "^4.21.1"
},
"devDependencies": {
"@types/express": "^5.0.0",
"prettier": "^3.3.3",
"typescript": "^5.6.3"
}
}
10 changes: 10 additions & 0 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 7064e4e

Please sign in to comment.