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.
This commit is contained in:
AlexKucera committed 2025-11-05 13:46:06 +01:00
1 parent 3c3f86ae4f
commit 2c4076f3c9
37 files changed
+4314 -872

No files matched your search

+3 -2
View File
@@ -218,7 +218,7 @@ export class SecurityUtils {
// Check for command injection attempts
const dangerousPatterns = [
/[;&|`$<>]/, // Shell metacharacters that can't appear in safe paths
// eslint-disable-next-line no-control-regex
// eslint-disable-next-line no-control-regex -- Intentionally checking for null byte character for security validation
/\x00/, // Null bytes
/\n|\r/, // Newlines
/\s*[;&|]\s*/, // Command separators with whitespace
@@ -374,7 +374,8 @@ export class SecurityUtils {
if (/[;&|`$<>]/.test(normalizedPath)) {
return 'Shell metacharacters are not allowed in executable paths';
}
if (/\x00/.test(normalizedPath)) { // eslint-disable-line no-control-regex
// eslint-disable-next-line no-control-regex -- Intentionally checking for null byte character for security validation
if (/\x00/.test(normalizedPath)) {
return 'Null bytes are not allowed in paths';
}
if (/\n|\r/.test(normalizedPath)) {