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

**Bug:** When using the --fix option for eslint on the rule @html-eslint/indent, if there are multiple html elements on the first line, the code is altered as well. This is...

bug

I am trying to adopt your linter in our project to validate small HTML-like template files and found that it has no option to allow any element to be self-closing....

enhancement

When a HTML comment is parsed using `html-eslint` it produce comment node of type `comment`. If that node is given to the eslint builtin `spaced-comment` rule, it will fail with...

When working react projects, i have eslint rule below [sort-props](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md) It is possible include similar rule in this plugin ? The reason of this rules: 1. More easily to prevent...

enhancement

Hello! I noticed that rule `@html-eslint/no-extra-spacing-attrs` reports if there a space before self-closing tag. ![no-extra-spacing](https://user-images.githubusercontent.com/49679666/155842105-cb40de1f-529d-4cb1-bbd4-8ee35ae37ec4.jpg) I think it's more comfortable to be able to customize this behavior. Maybe it's a...

enhancement

Currently my parser options are as follows: ``` parser: 'vue-eslint-parser', parserOptions: { parser: '@typescript-eslint/parser', sourceType: 'module', }, ``` I was wondering if I could use html-eslint in order to use...

question

Feature request - add rule that forbids media element without an explicit size attributes to prevent Layout Shift from occurring. e.g. Enforce images to have a width and height property....

enhancement

For a description of the problem, fix https://github.com/yeonjuan/html-eslint/issues/67

- https://sitebulb.com/hints/page-speed/dom-depth-exceeds-recommended-32-nodes-deep/ - https://web.dev/dom-size/

enhancement