html-eslint
html-eslint copied to clipboard
ESLint plugin for linting HTML
**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...
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....
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...
Hello! I noticed that rule `@html-eslint/no-extra-spacing-attrs` reports if there a space before self-closing tag.  I think it's more comfortable to be able to customize this behavior. Maybe it's a...
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...
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....
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/