mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Update to eslint-plugin-matrix-org 0.8 (#23825)
* Update to eslint-plugin-matrix-org 0.8 * Exclude some eslint rules for specs * Fix eslint tests path
This commit is contained in:
+3
-3
@@ -40,7 +40,7 @@ require('katex/dist/katex.css');
|
||||
require('./devcss');
|
||||
require('./localstorage-fix');
|
||||
|
||||
async function settled(...promises: Array<Promise<any>>) {
|
||||
async function settled(...promises: Array<Promise<any>>): Promise<void> {
|
||||
for (const prom of promises) {
|
||||
try {
|
||||
await prom;
|
||||
@@ -50,7 +50,7 @@ async function settled(...promises: Array<Promise<any>>) {
|
||||
}
|
||||
}
|
||||
|
||||
function checkBrowserFeatures() {
|
||||
function checkBrowserFeatures(): boolean {
|
||||
if (!window.Modernizr) {
|
||||
logger.error("Cannot check features - Modernizr global is missing.");
|
||||
return false;
|
||||
@@ -102,7 +102,7 @@ const supportedBrowser = checkBrowserFeatures();
|
||||
// We start loading stuff but don't block on it until as late as possible to allow
|
||||
// the browser to use as much parallelism as it can.
|
||||
// Load parallelism is based on research in https://github.com/vector-im/element-web/issues/12253
|
||||
async function start() {
|
||||
async function start(): Promise<void> {
|
||||
// load init.ts async so that its code is not executed immediately and we can catch any exceptions
|
||||
const {
|
||||
rageshakePromise,
|
||||
|
||||
Reference in New Issue
Block a user