h

marcoroth / herb

You can copy the badge and add it to your README!

Continuous Releases from main
Linter: Link file paths in Linter CLI output (#1243) <img width="3108" height="1484" alt="CleanShot 2026-02-24 at 22 05 43@2x" src="https://github.com/user-attachments/assets/7c126918-ac23-49c9-9757-88c88753182c" />4 hours agobc72326
Linter: Improve colors in Linter CLI output (#1242) **Before** <img width="3978" height="2602" alt="CleanShot 2026-02-24 at 21 36 13@2x" src="https://github.com/user-attachments/assets/cee48fe1-1889-4f69-b31e-fb46168e3b2d" /> **After** <img width="3978" height="2600" alt="CleanShot 2026-02-24 at 21 35 35@2x" src="https://github.com/user-attachments/assets/3e1ae8cf-7ce0-499f-a67f-c204d068330a" />7 hours ago20dfedd
Linter: Link Linter rule IDs to docs in CLI output (#1241) **Before** <img width="4572" height="2266" alt="CleanShot 2026-02-24 at 21 09 26@2x" src="https://github.com/user-attachments/assets/31ed2137-44e7-41dd-988e-585dab450739" /> **After** <img width="4572" height="2268" alt="CleanShot 2026-02-24 at 21 09 46@2x" src="https://github.com/user-attachments/assets/e3b7a568-d2bb-4304-bfe2-7b6380054a9c" />7 hours ago3dbc000
Parser: Fix `ConditionalElementMultipleTagsError` on valid templates (#1240) This pull request updates the conditional element analysis passes to no longer produce false `ConditionalElementMultipleTagsError` errors on valid templates containing complete HTML elements inside ERB control flow branches. The following template now parses without any errors: ```html+erb <% if true %> <% if true %> <div> <div></div> <% if true %><% end %> </div> <% else %> <div></div> <% end %> <% end %> ``` Related #1153 Related #1146 Related #1208 Resolves #12398 hours ago0a3f67c
JavaScript: Apply fixes from `oxlint` (#1238) https://oxc.rs/docs/guide/usage/linter.html9 hours ago11fdbcc
Parser: Improve ERB `case` node and `end` tag matching (#1237) This pull request improves the parser by properly matching `<% end %>` tags to `ERBCaseNode` when no `when`/`in` clauses are present. For the following example: ```html+erb <% case 1 %> <% end %> ``` The reported errors are now reduced to 1, down from 3. **Before** ``` Errors (3 total) 1. RubyParseError at test.html.erb:1:3 case_missing_conditions: expected a `when` or `in` clause after `case` 2. MissingERBEndTagError at test.html.erb:1:0 `<% case %>` started here but never closed with an end tag. The end tag may be in a different scope. 3. ERBControlFlowScopeError at test.html.erb:2:0 `<% end %>` appears outside its control flow block. Keep ERB control flow statements together within the same HTML scope (tag, attribute, or content). ``` **After** ``` Errors (1 total) 1. RubyParseError at test.html.erb:1:3 case_missing_conditions: expected a `when` or `in` clause after `case` ``` Inspired by https://github.com/ruby-gettext/gettext/pull/117 /cc @joelhawksleyyesterday3fca26a
Bump @typescript-eslint/parser from 8.54.0 to 8.56.1 (#1234) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.54.0 to 8.56.1. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>yesterdaydc6cf82
Bump oxlint from 1.48.0 to 1.50.0 (#1235) Bumps [oxlint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint) from 1.48.0 to 1.50.0. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>yesterday5a56813
Linter: Update `html-anchor-require-href` with `erblint-github` insights (#1228) This pull request updates the `html-anchor-require-href` rule with the findings from the [`GitHub::Accessibility::LinkHasHref`](https://github.com/github/erblint-github/blob/main/lib/erblint-github/linters/github/accessibility/link_has_href.rb) rule from [`erblint-github`](https://github.com/github/erblint-github). Resolves #12213 days ago4ad2981
Bump ajv from 6.12.6 to 6.14.0 (#1227) Bumps the npm_and_yarn group with 1 update in the / directory: [ajv](https://github.com/ajv-validator/ajv). Updates `ajv` from 6.12.6 to 6.14.0 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>3 days ago4d2d6cf