TSConfig
allowUnusedLabels
When:
undefined(default) provide suggestions as warnings to editorstrueunused labels are ignoredfalseraises compiler errors about unused labels
Labels are very rare in JavaScript and typically indicate an attempt to write an object literal:
tsTryfunctionverifyAge (age : number) {// Forgot 'return' statementif (age > 18) {Unused label.7028Unused label.verified : true;}}