From 5cf67c9f6ce9c4cdbbc64dcc713d37282918f1bb Mon Sep 17 00:00:00 2001 From: furedea <132188853+furedea@users.noreply.github.com> Date: Wed, 11 Nov 2026 02:51:19 +0900 Subject: [PATCH 1/2] ci(dprint): move dprint.json to the repository root dprint resolves includes relative to the config file's directory, so the CI step matched only dprint/dprint.json. Placing the config at the root makes every tracked JSON/TOML/Markdown file a target and lets CI and lefthook auto-detect it. The ~/dprint.json link keeps the same content. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ci.yml | 2 +- README.md | 2 +- dprint/dprint.json => dprint.json | 0 lefthook.yml | 2 +- nix/home/default.nix | 2 +- tests/esa/format.bats | 4 ++-- 6 files changed, 6 insertions(+), 6 deletions(-) rename dprint/dprint.json => dprint.json (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf2e712..90d03b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -205,7 +205,7 @@ jobs: uses: furedea/reusable-workflows/.github/actions/nix-setup@2ae953294b9a805d0705657adc1d9d4f1bc1f646 # v1.3.0 - name: Run dprint - run: dprint check --config dprint/dprint.json --incremental=false + run: dprint check --incremental=false - name: Run autocorrect run: autocorrect . --lint --no-diff-bg-color diff --git a/README.md b/README.md index 411ce4f..07c7ea2 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ The following repository sources are linked directly into the home directory: | `ghostty/config` | `~/.config/ghostty/config` | | `karabiner/karabiner.json` | `~/.config/karabiner/karabiner.json` | | `herdr/config.toml`, `herdr/reviewr.toml` | Herdr config and reviewr plugin config | -| `dprint/dprint.json` | `~/dprint.json` | +| `dprint.json` | `~/dprint.json` | | `.editorconfig` | `~/.editorconfig` | Git, GitHub CLI, Lazygit, Atuin, Yazi, Zsh plugin paths, and rendered agent files diff --git a/dprint/dprint.json b/dprint.json similarity index 100% rename from dprint/dprint.json rename to dprint.json diff --git a/lefthook.yml b/lefthook.yml index afda387..33b1b26 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -23,7 +23,7 @@ pre-commit: run: autocorrect --lint {all_files} dprint: glob: "*.{json,toml,md}" - run: dprint check --config ~/dprint.json {all_files} + run: dprint check {all_files} # ----- lint ----- shellcheck: glob: "*.sh" diff --git a/nix/home/default.nix b/nix/home/default.nix index da29de9..15e6e71 100644 --- a/nix/home/default.nix +++ b/nix/home/default.nix @@ -791,7 +791,7 @@ in ".vimrc".source = link "vim/.vimrc"; # dprint (global formatter config — dprint looks for ~/dprint.json by default) - "dprint.json".source = link "dprint/dprint.json"; + "dprint.json".source = link "dprint.json"; # EditorConfig (global fallback for projects without their own) ".editorconfig".source = link ".editorconfig"; diff --git a/tests/esa/format.bats b/tests/esa/format.bats index 6227f12..b77f273 100644 --- a/tests/esa/format.bats +++ b/tests/esa/format.bats @@ -8,7 +8,7 @@ setup() { } format_markdown() { - dprint fmt --config "$REPO_ROOT/dprint/dprint.json" --stdin article.md + dprint fmt --config "$REPO_ROOT/dprint.json" --stdin article.md } @test "Markdown formatting preserves line breaks in esa prose" { @@ -29,7 +29,7 @@ format_markdown() { local _outside="$BATS_TEST_TMPDIR/outside/post.md" mkdir -p "${_outside%/*}" - run --separate-stderr dprint fmt --config "$REPO_ROOT/dprint/dprint.json" --stdin "$_outside" < <(printf -- '- parent\n - child\n') + run --separate-stderr dprint fmt --config "$REPO_ROOT/dprint.json" --stdin "$_outside" < <(printf -- '- parent\n - child\n') [ "$status" -eq 0 ] [ "$output" = $'- parent\n - child' ] From 897a953f93d4f0985d98f4734a24d621b7005be4 Mon Sep 17 00:00:00 2001 From: furedea <132188853+furedea@users.noreply.github.com> Date: Wed, 11 Nov 2026 02:55:06 +0900 Subject: [PATCH 2/2] docs(readme): drop the removed dprint directory from the tree Co-Authored-By: Claude Sonnet 5.5 --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 07c7ea2..e5f0274 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,6 @@ reference files. ├── starship/ # Shell prompt ├── github/ # Repository creation and policy scripts ├── tests/ # Python contracts and Bats integration by domain -├── dprint/ # Global formatter configuration └── tinycast/ # Manual settings export ```