Skip to content

Commit b8d4e1f

Browse files
committed
fix: sentence-case for lint
These fields shouldn't be sentence-cased, but I can't get the automatic code review to respect my rules to ignore those words. Easier to just lowercase them for now.
1 parent 78665a3 commit b8d4e1f

File tree

3 files changed

+8
-29
lines changed

3 files changed

+8
-29
lines changed

eslint.config.mjs

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// eslint.config.mjs
2-
import { defineConfig } from 'eslint/config'
3-
import globals from 'globals'
4-
import tsparser from '@typescript-eslint/parser'
5-
import obsidianmd from 'eslint-plugin-obsidianmd'
1+
import { defineConfig } from 'eslint/config';
2+
import globals from 'globals';
3+
import tsparser from '@typescript-eslint/parser';
4+
import obsidianmd from 'eslint-plugin-obsidianmd';
65

76
export default defineConfig([
87
{ ignores: ['version-bump.mjs'] },
@@ -20,25 +19,5 @@ export default defineConfig([
2019
},
2120
parserOptions: { project: './tsconfig.json' },
2221
},
23-
24-
// languageOptions: {
25-
// globals: {
26-
// ...globals.browser,
27-
// ...globals.node,
28-
// createDiv: 'readonly',
29-
// },
30-
// parserOptions: {
31-
// projectService: true,
32-
// },
33-
// },
34-
35-
rules: {
36-
'obsidianmd/ui/sentence-case': [
37-
'error',
38-
{
39-
ignoreRegex: ['IGDB', 'API', 'ID', 'Twitch'],
40-
},
41-
],
42-
},
4322
},
44-
])
23+
]);

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export default class GameSearchPlugin extends Plugin {
218218
async createNewGameNote(): Promise<void> {
219219
// Validate API credentials
220220
if (!this.settings.clientId || !this.settings.clientSecret) {
221-
new Notice('Configure IGDB API credentials in settings first.');
221+
new Notice('Configure igdb API credentials in settings first.');
222222
return;
223223
}
224224

src/settings/settings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class GameSearchSettingTab extends PluginSettingTab {
173173
private createClientIdSetting(containerEl: HTMLElement): void {
174174
new Setting(containerEl)
175175
.setName('Client ID')
176-
.setDesc('Your Twitch/IGDB client ID.')
176+
.setDesc('Your twitch/igdb client ID.')
177177
.addText(text => {
178178
text
179179
.setPlaceholder('Enter client ID')
@@ -188,7 +188,7 @@ export class GameSearchSettingTab extends PluginSettingTab {
188188
private createClientSecretSetting(containerEl: HTMLElement): void {
189189
new Setting(containerEl)
190190
.setName('Client secret')
191-
.setDesc('Your Twitch/IGDB client secret (stored locally).')
191+
.setDesc('Your twitch/igdb client secret (stored locally).')
192192
.addText(text => {
193193
text.inputEl.type = 'password';
194194
text

0 commit comments

Comments
 (0)