43081j / 43081j/eslint-plugin-lit
static properties typo
Offen
- Vorherrschende Sprache
- TypeScript
- Sterne
- 138
- Forks
- 26
- Ø Merge
- 23 Std. 29 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
A good linting rule could be to ensure people aren't making a typo in the static properties getter, or use incorrect modifiers:
```
// a function
static properties() {
return {};
}
// a function
properties() { }
// not static
get properties() {
return {};
}
// not static
properties = {}
// typo
static get proporties() {
return {};
}
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.