Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Frontmatter Support in HTML Files #291

Open
frendly opened this issue Feb 12, 2025 · 1 comment · May be fixed by #293
Open

[Feature Request] Frontmatter Support in HTML Files #291

frendly opened this issue Feb 12, 2025 · 1 comment · May be fixed by #293
Labels
enhancement New feature or request

Comments

@frendly
Copy link

frendly commented Feb 12, 2025

I would like to request support for YAML frontmatter in HTML files within @html-eslint/eslint-plugin.

This feature would allow developers to include metadata at the beginning of HTML files while maintaining proper linting functionality.

If it already works, tell me how to use it :)

  1. @html-eslint/element-newline
    When saving files, extra indentation appears in frontmatter information

  2. @html-eslint/indent
    Indentation for eleventyNavigation items collapses

like this

// index.html

---
title: Home page
eleventyNavigation:
  key: Main
  order: 1
---

<h1>Welcome</h1>

<button>Go away</button>
@yeonjuan yeonjuan added the enhancement New feature or request label Feb 13, 2025
@yeonjuan
Copy link
Owner

Hi @frendly Thanks for the suggestion! I agree that this would be a nice feature to add.

@yeonjuan yeonjuan linked a pull request Feb 24, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants