43081j / 43081j/eslint-plugin-lit
Feature: rule to match tag-name to class
Offen
- Vorherrschende Sprache
- TypeScript
- Sterne
- 138
- Forks
- 26
- Ø Merge
- 23 Std. 29 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Similar to [eslint-plugin-wc tag-name-matches-class](https://github.com/43081j/eslint-plugin-wc/blob/HEAD/docs/rules/tag-name-matches-class.md) a similar rule that matches on `@customElement`
Incorrect example:
```ts
@customElement("my-element")
export class FooBar extends LitElement {
```
Correct example:
```ts
@customElement("foo-bar")
export class FooBar extends LitElement {
```
Similar to the eslint-plugin-wc rule, a prefix and suffix option would be good
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.