43081j / 43081j/eslint-plugin-lit

Feature: rule to match tag-name to class

Offen
#215 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
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.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.