Skip to content

Commit 5368bf7

Browse files
committed
TSConfig Italian translation: added allowUnusedLabels.md
1 parent 735542b commit 5368bf7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
display: "Permetti Label Non Utilizzati"
3+
oneline: "Visualizza un errore quando un'etichetta viene creata accidentalmente"
4+
---
5+
6+
Imposta a False per disattivare le avvertenze riguardo label non utilizzati.
7+
8+
In JavaScript i label sono molto rari e tipicamente indicano un tentativo di scrivere un oggetto letterale:
9+
10+
```ts twoslash
11+
// @errors: 7028
12+
// @allowUnusedLabels: false
13+
function verificaEta(eta: number) {
14+
// Il 'return' non è presente
15+
if (eta > 18) {
16+
verificato: true;
17+
}
18+
}
19+
```

0 commit comments

Comments
 (0)