diff --git a/eslint.config.mjs b/eslint.config.mjs index a58f190..4eac3b1 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -48,7 +48,15 @@ export default tseslint.config( rules: { "obsidianmd/ui/sentence-case": [ "error", - { enforceCamelCaseLower: true, allowAutoFix: true }, + { + enforceCamelCaseLower: true, + allowAutoFix: true, + // "OpenRouter" is a brand name with intentional internal capitals. + // It is not in the rule's built-in brand list, and `ignoreWords` is + // bypassed for single-word strings, so the exact label is whitelisted + // by regex to preserve official casing. + ignoreRegex: ["^OpenRouter$"], + }, ], }, }, diff --git a/main.ts b/main.ts index c15775b..a55f9ee 100644 --- a/main.ts +++ b/main.ts @@ -4049,8 +4049,8 @@ class YouTubeTranscriptSettingTab extends PluginSettingTab { // Removed "Use YouTube Data API v3" setting and CORS issue notice new Setting(settingsContainer) - .setName('Youtube data API key') - .setDesc('Your Google cloud console API key for accessing public Youtube transcripts (not an oauth token). Required for downloading channels and playlists.') + .setName('YouTube data API key') + .setDesc('Your Google cloud console API key for accessing public YouTube transcripts (not an OAUTH token). Required for downloading channels and playlists.') .addText(text => { const textComponent = text .setPlaceholder('Enter API key (starts with aiza)') @@ -4199,7 +4199,7 @@ class YouTubeTranscriptSettingTab extends PluginSettingTab { .setDesc('Provider used for summarisation.') .addDropdown(dropdown => { // Add OpenAI option - dropdown.addOption('openai', 'Openai'); + dropdown.addOption('openai', 'OpenAI'); // Always add Anthropic, Google, Ollama, and OpenRouter options since they all work on any platform now dropdown.addOption('anthropic', 'Anthropic');