Skip to content

Linter/Formatter: Add <%# herb:* ignore %> directives#891

Merged
marcoroth merged 2 commits into
mainfrom
herb-lint-ignore
Nov 17, 2025
Merged

Linter/Formatter: Add <%# herb:* ignore %> directives#891
marcoroth merged 2 commits into
mainfrom
herb-lint-ignore

Conversation

@marcoroth

@marcoroth marcoroth commented Nov 17, 2025

Copy link
Copy Markdown
Owner

Add support for <%# herb:formatter ignore %> and <%# herb:linter ignore %> directives to stop the formatter or linter from operating on the entire file.

<%# herb:formatter ignore %>

<div><div>This entire file will not be formatted</div></div>
<%# herb:linter ignore %>

<DIV>
  <SPAN>This entire file will not be linted</SPAN>
</DIV>

@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2025

Copy link
Copy Markdown
npx https://pkg.pr.new/@herb-tools/formatter@891
npx https://pkg.pr.new/@herb-tools/language-server@891
npx https://pkg.pr.new/@herb-tools/linter@891

commit: c43fd96

@github-actions

github-actions Bot commented Nov 17, 2025

Copy link
Copy Markdown

🌿 Interactive Playground and Documentation Preview

A preview deployment has been built for this pull request. Try out the changes live in the interactive playground:


🌱 Grown from commit c43fd96


✅ Preview deployment has been cleaned up.

@marcoroth marcoroth merged commit a9d2961 into main Nov 17, 2025
13 checks passed
@marcoroth marcoroth deleted the herb-lint-ignore branch November 17, 2025 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant