ref(eslint) Use new TypeScript ESlint config (#12143)

Use new TS config from @jitsi/eslint
Fix all lint errors
This commit is contained in:
Robert Pintilii
2022-09-08 12:52:36 +03:00
committed by GitHub
parent e296008d95
commit 10bb186c13
198 changed files with 1199 additions and 1215 deletions

View File

@@ -67,7 +67,7 @@ class GoogleAnalyticsHandler extends AbstractHandler {
* @private
*/
_extractValue(event: IEvent) {
let value: string|number|undefined = event && event.attributes && event.attributes.value;
let value: string | number | undefined = event?.attributes?.value;
// Try to extract an integer from the "value" attribute.
value = Math.round(parseFloat(value ?? ''));