From 5a75def2f5e9cd5f3421a908505c59ac074dae74 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 17 Jul 2025 23:00:06 +0100 Subject: Add dprint formatter --- .dprint.json | 20 ++++++++++++++++++++ README.md | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .dprint.json diff --git a/.dprint.json b/.dprint.json new file mode 100644 index 0000000..e1b5c04 --- /dev/null +++ b/.dprint.json @@ -0,0 +1,20 @@ +{ + "plugins": [ + "https://plugins.dprint.dev/markdown-0.19.0.wasm", + "https://plugins.dprint.dev/ruff-0.4.2.wasm", + "https://plugins.dprint.dev/toml-0.7.0.wasm", + "https://plugins.dprint.dev/json-0.20.0.wasm" + ], + + "excludes": [ + "**/target" + ], + "indentWidth": 4, + "lineWidth": 80, + "newLineKind": "lf", + "useTabs": true, + + "markdown": { + "textWrap": "always" + } +} diff --git a/README.md b/README.md index c4e0338..e75a1e2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,22 @@ Schist is a budgeting app. +## Formatting + +Schist is formatted using dprint. + +To install on Mac or Linux, use Homebrew: + +```sh +brew install dprint +``` + +To format the project, run: + +```sh +dprint fmt +``` + ## Links - [Designs](https://design.penpot.app/#/workspace/345886aa-f4d1-8033-8005-670f665094a3/a0a8e792-b2d2-818e-8005-670ffeb32184) -- cgit v1.2.3