html-eslint
html-eslint copied to clipboard
ESLint plugin for linting HTML
[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...
- https://google.github.io/styleguide/htmlcssguide.html
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" }]`...
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...
- https://eslint.org/docs/latest/use/configure/configuration-files-new - https://eslint.org/docs/latest/use/configure/migration-guide#start-using-flat-config-files
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: ``` {...
```js // recommended.js module.exports = { parser: '@html-eslint/parser', plugins: ['@html-eslint'], rules: { // ... }, }; ``` Not sure why they are not included by default
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.  zip](https://github.com/yeonjuan/html-eslint/files/10125476/silent-signin-oidc.html.zip)