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 %}"