### Required

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/debug.ts#L3-L3)[\[2\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/main.ts#L51-L51)[\[3\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/ui/SettingsTab.ts#L13-L13)
Unexpected any. Specify a different type.

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/debug.ts#L4-L4)
Unexpected console statement. Only these console methods are allowed: warn, error, debug.

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/main.ts#L80-L80)
Creating and attaching "style" elements is not allowed. For loading CSS, use a "styles.css" file instead, which Obsidian loads for you.

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/main.ts#L179-L179)
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/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/main.ts#L208-L208)
Unexpected aliasing of 'this' to local variable.

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/main.ts#L213-L213)
Invalid operand for a '+' operation. Operands must each be a number or string, allowing a string + any of: `any`, `boolean`, `null`, `RegExp`, `undefined`. Got `TFile`.

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/main.ts#L213-L213)
'file' may use Object's default stringification format ('[object Object]') when stringified.

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/main.ts#L262-L262)
Promise returned in function argument where a void return was expected.

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/ui/SettingsTab.ts#L20-L20)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/ui/SettingsTab.ts#L20-L20)
Use sentence case for UI text.

[\[1\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/ui/SettingsTab.ts#L37-L55)[\[2\]](https://github.com/mihasm/obsidian-autosave-control/blob/7274cd14a167b899f1ecb853b3ef6660ac5458c1/ui/SettingsTab.ts#L57-L75)
Expected an assignment or function call and instead saw an expression.



---

### Optional

