Set up prettier

This commit is contained in:
Joscha 2025-01-26 18:40:43 +01:00
parent 07a2dc8c5d
commit 727ca3259a
9 changed files with 30 additions and 12 deletions

2
.prettierignore Normal file
View file

@ -0,0 +1,2 @@
/gdn-app/pnpm-lock.yaml
/gdn-app/src-tauri/gen/

3
.prettierrc Normal file
View file

@ -0,0 +1,3 @@
{
"proseWrap": "always"
}

View file

@ -1,7 +1,9 @@
{
"recommendations": [
"Vue.volar",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer"
"esbenp.prettier-vscode",
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"tauri-apps.tauri-vscode"
]
}

6
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
}
}

View file

@ -6,7 +6,7 @@
Storage. The combination of the two is a bad pun that requires specialized
hardware to even type properly.
In places where the *proper name* — "GedächtNAS", including the umlaut and
capitalization — can't be used, the *technical name* — "gedaechtnas", always
lowercase — or the *abbreviated name* — "gdn" — shall be used instead. Other
In places where the _proper name_ — "GedächtNAS", including the umlaut and
capitalization — can't be used, the _technical name_ — "gedaechtnas", always
lowercase — or the _abbreviated name_ — "gdn" — shall be used instead. Other
variations or spellings are incorrect.

View file

@ -3,8 +3,5 @@
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"core:default",
"opener:default"
]
"permissions": ["core:default", "opener:default"]
}

View file

@ -44,7 +44,6 @@ async function greet() {
.logo.vue:hover {
filter: drop-shadow(0 0 2em #249b73);
}
</style>
<style>
:root {
@ -156,5 +155,4 @@ button {
background-color: #0f0f0f69;
}
}
</style>
</style>

5
meta/fmt Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
prettier . --write
cargo fmt

5
meta/fmt-check Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
prettier . --check
cargo fmt --check