Skip to content

Commit

Permalink
build: add prettier format on save
Browse files Browse the repository at this point in the history
  • Loading branch information
gventuri committed Oct 14, 2024
1 parent efde0e1 commit 7c8c6ab
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"editor.formatOnSave": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.configPath": "frontend/.prettierrc",
"prettier.ignorePath": "frontend/.prettierignore",
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"ruff.organizeImports": true,
"ruff.fixAll": true,
"ruff.path": ["backend"]
}
6 changes: 6 additions & 0 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
20 changes: 20 additions & 0 deletions settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"editor.formatOnSave": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.configPath": "frontend/.prettierrc",
"prettier.ignorePath": "frontend/.prettierignore",
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"ruff.organizeImports": true,
"ruff.fixAll": true,
"ruff.path": ["backend"]
}

0 comments on commit 7c8c6ab

Please sign in to comment.