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

@@ -85,7 +85,7 @@ export function getBaseUrl(w: Window = window) {
const doc = w.document;
const base = doc.querySelector('base');
if (base && base.href) {
if (base?.href) {
return base.href;
}
@@ -127,7 +127,7 @@ export function getJitsiMeetGlobalNS() {
*/
export function reportError(e: Error, msg = '') {
console.error(msg, e);
window.onerror && window.onerror(msg, undefined, undefined, undefined, e);
window.onerror?.(msg, undefined, undefined, undefined, e);
}
/**