fix: format a fresh copy with its own linter, generated names can exceed the line width
This commit is contained in:
1 parent
6c9d5063b9
commit
0fadb740fb
1 file changed
+3
-3
+3
-3
@@ -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 %}"
|
||||
Reference in new issue
Block a user