### Required

[\[1\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L11-L11)[\[2\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L114-L114)[\[3\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L502-L502)[\[4\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L541-L541)[\[5\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L545-L545)[\[6\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L555-L555)[\[7\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L565-L565)[\[8\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L575-L575)[\[9\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L585-L585)[\[10\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L596-L596)[\[11\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L606-L606)[\[12\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L625-L625)[\[13\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L678-L678)[\[14\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L706-L706)[\[15\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L713-L713)[\[16\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L734-L734)[\[17\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L762-L762)[\[18\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L777-L777)[\[19\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L790-L790)[\[20\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L807-L807)[\[21\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L813-L813)[\[22\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L815-L815)[\[23\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L818-L818)[\[24\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L819-L819)[\[25\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L820-L820)[\[26\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L821-L821)[\[27\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L822-L822)[\[28\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L823-L823)[\[29\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L824-L824)[\[30\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L825-L825)[\[31\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L833-L833)[\[32\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L835-L835)[\[33\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L837-L837)[\[34\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L841-L841)[\[35\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L843-L843)[\[36\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L845-L845)[\[37\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L849-L849)[\[38\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L857-L857)[\[39\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L859-L859)[\[40\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L861-L861)[\[41\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L865-L865)[\[42\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L866-L866)[\[43\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L867-L867)[\[44\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L869-L869)[\[45\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L873-L873)[\[46\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L874-L874)[\[47\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L875-L875)[\[48\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L877-L877)[\[49\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L881-L881)[\[50\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L882-L882)[\[51\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L883-L883)[\[52\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L885-L885)[\[53\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L889-L889)
Use sentence case for UI text.

[\[1\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L12-L12)[\[2\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L21-L21)
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/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L91-L91)
Unexpected any. Specify a different type.

[\[1\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L171-L171)
Async method 'cleanSelection' has no 'await' expression.

[\[1\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L502-L502)[\[2\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L541-L541)[\[3\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L625-L625)[\[4\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L678-L678)[\[5\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L706-L706)[\[6\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L734-L734)[\[7\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L762-L762)[\[8\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L777-L777)[\[9\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L807-L807)[\[10\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L815-L815)[\[11\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L829-L829)[\[12\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L833-L833)[\[13\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L841-L841)[\[14\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L849-L849)[\[15\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L857-L857)[\[16\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L865-L865)[\[17\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L873-L873)[\[18\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L881-L881)[\[19\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L889-L889)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.



---

### Optional

[\[1\]](https://github.com/z0diaq/obsidian-line-cleaner/blob/59ee732e7090bb7503a30f3705e9cacd2d40fd25/main.ts#L1-L1)
'Modal' is defined but never used.

