### Required

[[1]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L392-L392)[[2]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1071-L1071)
Unsafe assignment of an `any` value.

[[1]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L515-L515)
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/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L698-L698)[[2]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L790-L790)[[3]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L796-L796)[[4]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1330-L1330)[[5]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1341-L1341)[[6]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1352-L1352)[[7]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1379-L1379)[[8]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1390-L1390)[[9]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1405-L1405)
Use sentence case for UI text.

[[1]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1071-L1071)
Unsafe member access .message on an `any` value.

[[1]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1324-L1324)[[2]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1359-L1359)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.



---

### Optional

[[1]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L775-L775)
'labelEl' is assigned a value but never used.

[[1]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L827-L827)
'selectAllLabel' is assigned a value but never used.

[[1]](https://github.com/dolag233/Obsidian-Image-Compressor/blob/8fe18a5c2a1dbc06e87f981a3b216b3aa5eacb8f/main.ts#L1519-L1519)
'successCount' is assigned a value but never used.

