diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..2f6869f --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +/gdn-app/pnpm-lock.yaml +/gdn-app/src-tauri/gen/ diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..5b5bd99 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "proseWrap": "always" +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json index cf4385b..474f138 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -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" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6d8f81b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[toml]": { + "editor.defaultFormatter": "tamasfe.even-better-toml" + } +} diff --git a/README.md b/README.md index 0d04cf9..f0de8c4 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/gdn-app/src-tauri/capabilities/default.json b/gdn-app/src-tauri/capabilities/default.json index 4cdbf49..f778364 100644 --- a/gdn-app/src-tauri/capabilities/default.json +++ b/gdn-app/src-tauri/capabilities/default.json @@ -3,8 +3,5 @@ "identifier": "default", "description": "Capability for the main window", "windows": ["main"], - "permissions": [ - "core:default", - "opener:default" - ] + "permissions": ["core:default", "opener:default"] } diff --git a/gdn-app/src/App.vue b/gdn-app/src/App.vue index 5a26f11..7344665 100644 --- a/gdn-app/src/App.vue +++ b/gdn-app/src/App.vue @@ -44,7 +44,6 @@ async function greet() { .logo.vue:hover { filter: drop-shadow(0 0 2em #249b73); } - \ No newline at end of file + diff --git a/meta/fmt b/meta/fmt new file mode 100755 index 0000000..2240e4d --- /dev/null +++ b/meta/fmt @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -euo pipefail + +prettier . --write +cargo fmt diff --git a/meta/fmt-check b/meta/fmt-check new file mode 100755 index 0000000..84819a3 --- /dev/null +++ b/meta/fmt-check @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -euo pipefail + +prettier . --check +cargo fmt --check