amilajack / amilajack/eslint-plugin-compat

Understand variables, like n.serviceWorker

Aperta
#102 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
3.2k
Fork
115
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When code has `navigator.serviceWorker` it will return error (is Ok)

```
22: navigator.serviceWorker
^^^^^^^^^^^^^ `ServiceWorker` is not supported in IE 11, Edge 15 and Safari 8 😢
```

while when used variables like

```
var n = navigator;
n.serviceWorker.register(...);

it doesn't return error while is expected to have (not Ok).

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.