fix: format a fresh copy with its own linter, generated names can exceed the line width

This commit is contained in:
hh committed 2026-10-10 22:40:54 +00:00
1 parent 6c9d5063b9
commit 0fadb740fb
1 file changed
+3 -3
+3 -3
View File
@@ -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 %}"