Files
obsidian-typst-pdf-export/obsidianreviewbot-feedback.md
T
AlexKucera 2c4076f3c9 Applies Obsidian linter and fixes code issues
Applies linting rules to the codebase and resolves identified issues.

Addresses:
- Renamed headings in settings tabs to improve UI consistency and style.
- Resolved require() style imports
- Added void operator to ensure correct promise handling.
- Replaced deprecated Obsidian API calls.
- Enforces sentence case to enhance UI text consistency.
2025-11-05 13:46:06 +01:00

21 KiB

Required

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Use sentence case for UI text.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 A require() style import is forbidden.

1 Async method 'process' has no 'await' expression.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 2 3 Obsidian's configuration folder is not necessarily .obsidian, can be configured by the user. Use Vault#configDir to get the current value

1 2 3 4 5 6 7 'js-yaml' should be listed in the project's dependencies. n 'npm i -S js-yaml' to add it

1 2 3 4 5 Unexpected console statement. Only these console methods are allowed: warn, error, debug.

1 'value' will use Object's default stringification format ('[object Object]') when ringified.

1 Static async method 'checkDependenciesAsync' has no 'await' expression.

1 2 The two values in this comparison do not have a shared enum type.

1 2 Unexpected undescribed directive comment. Include descriptions to explain why the comment is necessary.

1 2 A method that is not declared with this: void may cause unintentional scoping of this when separated from its object. Consider using an arrow function or explicitly .bind()ing the method to avoid calling the method with an intended this value. If a function does not access this, it can be annotated with this: void.

1 2 Promise returned in function argument where a void return was expected.

1 noticeEl is deprecated. Use messageEl instead

1 2 3 4 5 6 For a consistent UI use new Setting(containerEl).setName(...).setHeading() instead of creating HTML heading elements directly.

1 Unexpected lexical declaration in case block.

1 Promise-returning function provided to property where a void return was expected.

1 Unexpected await of a non-Promise (non-"Thenable") value.

1 Creating and attaching "style" elements is not allowed. For loading CSS, use a "styles.css" file instead, which sidian loads for you.

1 2 Unexpected use of 'localStorage'. Prefer App#saveLocalStorage / App#loadLocalStorage functions to write / read localStorage data that's unique to a vault.

Optional

1 '_result' is assigned a value but never used.

1 '_progressPercent' is assigned a value but never used.