From 0fadb740fbe05fba350d1c4e8877c4f74850e1b7 Mon Sep 17 00:00:00 2001 From: h Date: Sat, 10 Oct 2026 22:40:21 +0000 Subject: [PATCH] fix: format a fresh copy with its own linter, generated names can exceed the line width --- copier.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/copier.yml b/copier.yml index 11fd5c2..b06f71d 100644 --- a/copier.yml +++ b/copier.yml @@ -66,6 +66,6 @@ prefix: default: "{{ 'frontend/' if layout == 'part' else '' }}" _tasks: - # prettier-plugin-tailwindcss and biome sort classes differently, the - # sources follow biome: an eslint project is formatted once, right away. - - "{% if _copier_operation == 'copy' and install_deps %}sh -c 'cd {{ part_dir }} && bun install{% if linter == 'eslint' %} && bun run fix{% endif %}'{% else %}true{% endif %}" + # Generated values (project name) can push lines past the formatter width, + # so every fresh copy is formatted once by its own linter. + - "{% if _copier_operation == 'copy' and install_deps %}sh -c 'cd {{ part_dir }} && bun install && bun --bun run fix'{% else %}true{% endif %}"