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

ESLint plugin for linting HTML

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

[ember-template-lint](https://github.com/ember-template-lint/ember-template-lint) has many rules that can be ported to HTML ESLint, such as: - [`no-abstract-roles`](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-abstract-roles.md) - [`no-aria-hidden-body`](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-aria-hidden-body.md) - [`no-duplicate-landmark-elements`](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-duplicate-landmark-elements.md) - [`no-heading-inside-button`](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-heading-inside-button.md) - [`no-invalid-role`](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-invalid-role.md) - [`no-nested-interactive`](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-nested-interactive.md) - [`no-nested-landmark`](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-nested-landmark.md) - and a...

enhancement

- https://google.github.io/styleguide/htmlcssguide.html

enhancement

check online HTML with cli (except for stylistic rules automatically)

Is it possible to enforce "no-extra-spacing-attrs" on all tags, except on those that are void tags? In other words, make it work when using `"@html-eslint/require-closing-tags": ["error", { "selfClosing": "always" }]`...

enhancement

Is it possible to add a configuration to optionally allow this scenario? Some of the projects where I'm advocting to implement "@html-eslint" use this format. ```html ... ... ``` Current...

enhancement

- https://eslint.org/docs/latest/use/configure/configuration-files-new - https://eslint.org/docs/latest/use/configure/migration-guide#start-using-flat-config-files

enhancement

The plugin doesn't seem to be picking up on hanging closing tags e.g. ```html ``` When included in a large HTML file, the HTML is then invalid and formatters like...

Hello, I think that it would be interesting to add to the _require-attrs_ rule the conditionality option for requirement. ### For example: Given the element: `` Rule setting: ``` {...

enhancement

```js // recommended.js module.exports = { parser: '@html-eslint/parser', plugins: ['@html-eslint'], rules: { // ... }, }; ``` Not sure why they are not included by default

enhancement

The `@html-eslint/element-newline` rule throws error for the attached HTML file. Used package versions: eslint: 8.14.0 @html-eslint/parser: 0.15.0 @html-eslint/eslint-plugin: 0.15.0 [silent-signin-oidc.html. ![element-newline-error](https://user-images.githubusercontent.com/68288965/204861116-458b67f5-8618-43c9-bc87-e1826b255793.png) zip](https://github.com/yeonjuan/html-eslint/files/10125476/silent-signin-oidc.html.zip)

bug