### Required

[\[1\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L139-L139)
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/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L157-L157)
`activeLeaf` is deprecated. The use of this field is discouraged.
The recommended alternatives are:
- If you need information about the current view, use {@link Workspace.getActiveViewOfType}.
- If you need to open a new file or navigate a view, use {@link Workspace.getLeaf}.

[\[1\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L184-L184)[\[2\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L313-L313)[\[3\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L315-L315)[\[4\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L329-L329)[\[5\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L354-L354)[\[6\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L360-L360)[\[7\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L369-L369)[\[8\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L381-L381)[\[9\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L396-L396)[\[10\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L412-L412)
Unexpected any. Specify a different type.

[\[1\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L527-L529)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.

[\[1\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L528-L528)[\[2\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L532-L532)[\[3\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L545-L545)[\[4\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L561-L561)[\[5\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L574-L574)[\[6\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L578-L578)[\[7\]](https://github.com/LaneSun/obsidian-variables/blob/a1af5a2627a71edb67927232f29785ff4035453e/main.ts#L588-L588)
Use sentence case for UI text.



---

### Optional

