eslint-plugin-lit icon indicating copy to clipboard operation
eslint-plugin-lit copied to clipboard

lit-html support for ESLint

Results 34 eslint-plugin-lit issues
Sort by recently updated
recently updated
newest added

As also requested in the issue https://github.com/43081j/eslint-plugin-lit/issues/92, this PR adds the rule to accomplish the following: Boolean attribute expressions (e.g `?hidden=${true}`) should only be used for standard boolean attributes that...

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1. Release notes Sourced from ansi-regex's releases. v5.0.1 Fixes (backport of 6.0.1 to v5) This is a backport of the minor ReDos vulnerability in ansi-regex@<6.0.1,...

dependencies

Fixes #125 . I've tried to improve that phrasing on messages and docs that I found confusing, but I am not a native speaker! Feel free to comment on inaccuracies!

In Lit v2 you can achieve some of these invalid binding positions by using `import { html } from 'lit/static-html.js'; `. We should probably warn about the binding positions if...

First of all: Thank you so much for all your work and effort! I've noticed that this plugin considers `.bind`-calls inside template-expressions an error, claiming that lit would auto-bind those....

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

When you have a template like: ```ts html`Link` ``` It will give the following errors: ``` Template contained invalid HTML syntax, error was: missing-whitespace-between-attributes eslint(lit/no-invalid-html) Template contained invalid HTML syntax,...

We want to disallow the usage of `style` attributes as it breaks some common [CSP directives](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP). Would it be possible to add such a rule?

Checkboxes and radios are unique in that they have a default value of `"on"`. If you use property binding, you cannot take advantage of this: ```js html`` // will submit...

Hey! Thx for this plugin. I suggest these 2 rules to check if the filename matches with lit class name and if the filename matches with element name.