html-eslint
html-eslint copied to clipboard
ESLint plugin for linting HTML
- ref: https://github.com/BenoitZugmeyer/eslint-plugin-html
I have the following `.eslintrc.cjs` file: ```csj module.exports = { root: true, env: { browser: true, es2020: true }, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended-type-checked', 'plugin:@typescript-eslint/stylistic-type-checked', 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:react/jsx-runtime', 'prettier', ], ignorePatterns:...
The current implementation of `require-closing-tags` includes the option `allowSelfClosingCustom`. When set to `false`, self-closing tags for custom elements are not permitted. However, when set to `true`, it only ignores custom...
> BTW, it would be nice to have a very short "how to contribute" block in the readme, especially with the NPM scripts (Something like "before submitting PRs, run npm...
I'm using `html-eslint` and it works fine:  But, then I want to use `eslint-plugin-tailwindcss` to lint tailwind elements.    It works. But, as you can see, I...
The `/*html*/`/`html` template literal syntax is used by several libraries, like Lit: ```js const myTemplate = /*html*/` Hello, world! `; document.body.innerHTML = myTemplate; ``` It would be nice if html-eslint...
For example, this test fails. It should pass because `b` and `c` are skipped: ```js { code: ` `, options: [ { skip: ["b", "c"] } ] } ```
This issue is regarding the rule [require-button-type](https://html-eslint.org/docs/rules/require-button-type) The default for button type is "submit" if unspecified or invalid. ref: https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type For missing button type (and maybe for invalid too?), I...
#202 adds functionality that prevents extra spacing inside tags even when there are no attributes, so the `-attrs` in `no-extra-spacing-attrs` isn't quite correct. Maybe deprecate `no-extra-spacing-attrs` and add a new...
This repo has Prettier, but it might be nice to have an `.eslintrc` to enforce things like which quotes to use and @yeonjuan's other style preferences that Prettier doesn't cover.