html-eslint icon indicating copy to clipboard operation
html-eslint copied to clipboard

ESLint plugin for linting HTML

Results 36 html-eslint issues
Sort by recently updated
recently updated
newest added

- ref: https://github.com/BenoitZugmeyer/eslint-plugin-html

I have the following `.eslintrc.cjs` file: ```csj module.exports = { root: true, env: { browser: true, es2020: true }, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended-type-checked', 'plugin:@typescript-eslint/stylistic-type-checked', 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:react/jsx-runtime', 'prettier', ], ignorePatterns:...

The current implementation of `require-closing-tags` includes the option `allowSelfClosingCustom`. When set to `false`, self-closing tags for custom elements are not permitted. However, when set to `true`, it only ignores custom...

enhancement

> BTW, it would be nice to have a very short "how to contribute" block in the readme, especially with the NPM scripts (Something like "before submitting PRs, run npm...

documentation

I'm using `html-eslint` and it works fine: ![image](https://github.com/user-attachments/assets/bea442d0-8ef4-4751-892f-ce9b0b82ad3c) But, then I want to use `eslint-plugin-tailwindcss` to lint tailwind elements. ![image](https://github.com/user-attachments/assets/155f204e-62f9-4035-91f6-eb5d84af088f) ![image](https://github.com/user-attachments/assets/6af0adea-ef65-4b44-a56a-51e232317c4f) ![image](https://github.com/user-attachments/assets/e0d71da1-d123-41f3-954c-0c1d281eba24) It works. But, as you can see, I...

The `/*html*/`/`html` template literal syntax is used by several libraries, like Lit: ```js const myTemplate = /*html*/` Hello, world! `; document.body.innerHTML = myTemplate; ``` It would be nice if html-eslint...

enhancement

For example, this test fails. It should pass because `b` and `c` are skipped: ```js { code: ` `, options: [ { skip: ["b", "c"] } ] } ```

This issue is regarding the rule [require-button-type](https://html-eslint.org/docs/rules/require-button-type) The default for button type is "submit" if unspecified or invalid. ref: https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type For missing button type (and maybe for invalid too?), I...

enhancement

#202 adds functionality that prevents extra spacing inside tags even when there are no attributes, so the `-attrs` in `no-extra-spacing-attrs` isn't quite correct. Maybe deprecate `no-extra-spacing-attrs` and add a new...

enhancement

This repo has Prettier, but it might be nice to have an `.eslintrc` to enforce things like which quotes to use and @yeonjuan's other style preferences that Prettier doesn't cover.

maintain