Skip to content

Keep commented template inputs Prettier-stable - #7

Merged
PavlosIsaris merged 1 commit into
mainfrom
prettier-stable-templates
Sep 30, 2026
Merged

PavlosIsaris merged 1 commit into
mainfrom
prettier-stable-templates

Conversation

@PavlosIsaris

Copy link
Copy Markdown
Contributor

Prettier aligns every comment with the line above it. In the SciFY Node CI and SciFY Security templates, the inputs commented out under # with: lost their extra indentation, so an uncommented input no longer sat under with:. annotation-management-system found this: its prettier --check . failed on a caller in this layout.

The extra indentation now follows the #, which Prettier does not change. Section headers get a second #, so they stay comments when a developer uncomments the whole block.

Checked: Prettier changes none of the commented lines, and both templates lint with every input uncommented (11 and 8 inputs). The Laravel template is not affected, because its with: is not commented out.

Prettier aligns a comment with the line above it, so inputs commented out
under `# with:` lost their nesting in any repository that runs Prettier.
The extra indentation now follows the #, which Prettier does not touch.
Found through a failing Prettier check in annotation-management-system.
@PavlosIsaris
PavlosIsaris merged commit 7390bfc into main Sep 30, 2026
28 checks passed
@PavlosIsaris
PavlosIsaris deleted the prettier-stable-templates branch September 30, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant