### Required

[\[1\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L126-L126)
Async arrow function has no 'await' expression.

[\[1\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L130-L154)[\[2\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L639-L642)[\[3\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L658-L661)[\[4\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L669-L672)[\[5\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L680-L683)[\[6\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L691-L694)[\[7\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L702-L705)[\[8\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L712-L715)[\[9\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L731-L734)[\[10\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L742-L745)[\[11\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L749-L753)[\[12\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L765-L772)
Promise returned in function argument where a void return was expected.

[\[1\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L212-L212)[\[2\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L376-L376)[\[3\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L405-L405)[\[4\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L481-L481)[\[5\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L516-L516)
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.

[\[1\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L346-L346)
Unexpected lexical declaration in case block.

[\[1\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L627-L627)[\[2\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L646-L646)[\[3\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L718-L718)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.

[\[1\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L627-L627)[\[2\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L635-L635)[\[3\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L637-L637)[\[4\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L646-L646)[\[5\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L653-L653)[\[6\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L656-L656)[\[7\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L664-L664)[\[8\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L667-L667)[\[9\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L675-L675)[\[10\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L678-L678)[\[11\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L686-L686)[\[12\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L689-L689)[\[13\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L697-L697)[\[14\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L700-L700)[\[15\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L718-L718)[\[16\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L736-L736)[\[17\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L737-L737)[\[18\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L738-L738)[\[19\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L739-L739)[\[20\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L740-L740)[\[21\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L761-L761)[\[22\]](https://github.com/sorobby/obsidian-view-mode/blob/9849e75160046a1a5713fb8dcbb4f0c5cceef948/main.ts#L764-L764)
Use sentence case for UI text.



---

### Optional

