# eslint-plugin-html

> ESLint plugin that lints and fixes inline scripts in HTML files

Source: https://talira.ai/catalog/eslint-plugin-html-trqvdmve
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: ISC[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Benoît Zugmeyer](https://talira.ai/orgs/benoitzugmeyer.md)

eslint-plugin-html is an [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md) plugin that lints and fixes the inline `<script>` blocks in HTML and XML files. It shares the global scope between classic script tags the way a browser does (module scripts each get their own), and settings choose the file extensions, script MIME types and indentation. It doesn't lint the HTML itself: its README points to @html-eslint for that.

## Links

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

## Problems it solves

- run ESLint on JavaScript inside HTML files
- lint script tags in static HTML pages
- fix indentation of inline scripts with ESLint

## Features

- lints and fixes inline scripts in HTML and XML
- browser-like shared scope between script tags
- configurable extensions, MIME types and indentation

## Limitations

- Doesn't lint the HTML markup itself, and isn't compatible with ESLint's language option.[^1]

## Trust

Overall: 0.40 out of 1.
Signals: maintenance 0.48, adoption 0.53, momentum 0.19, community 0.61, backing 0.30, extensibility 0.00.

- last commit 39 days ago
- 4 commits in the last 90 days
- 460 GitHub stars
- 33 contributors
- backed by Benoît Zugmeyer

## Related

- Works with [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md)

## Alternatives

- [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md): Find and fix problems in your JavaScript code.
- [eslint-plugin-prettier](https://talira.ai/catalog/eslint-plugin-prettier-h1600fhg.md): Run Prettier as an ESLint rule
- [eslint-plugin-unicorn](https://talira.ai/catalog/eslint-plugin-unicorn-vf1fmajm.md): More than 300 powerful ESLint rules
- [Biome](https://talira.ai/catalog/biome-0x0507a7.md): One fast toolchain that formats and lints JavaScript, TypeScript, JSON, CSS, HTML, GraphQL, YAML and Markdown.
- [eslint-plugin-mocha](https://talira.ai/catalog/eslint-plugin-mocha-mtd5q0e6.md): ESLint rules for Mocha test suites
- [XO](https://talira.ai/catalog/xo-52vbgqne.md): Zero-config JavaScript and TypeScript linter built on ESLint

## Sources

[^1]: https://github.com/BenoitZugmeyer/eslint-plugin-html/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/BenoitZugmeyer/eslint-plugin-html/blob/main/LICENSE (checked 29 Nov 2026)
