Skip to content

Commit fd9ddfc

Browse files
committed
🚨 style: Fix linting issues
1 parent d98de92 commit fd9ddfc

40 files changed

Lines changed: 105 additions & 78 deletions

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"lint:fix": "npm run lint -- --fix",
1717
"prettify": "prettier --write '**/*.ts'",
1818
"start": "node dist/main.js",
19-
"test": "jest",
19+
"test": "jest --passWithNoTests",
2020
"test:watch": "jest --watch",
21-
"test:coverage": "jest --coverage",
21+
"test:coverage": "jest --coverage --passWithNoTests",
2222
"toc": "doctoc README.md --github --notitle",
2323
"type-check": "tsc --noEmit",
2424
"update": "ncu -i",

src/application/bootstrap/cli-initialization.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class CliInitializationService implements OnModuleInit {
1818
private readonly repositoryFacade: RepositoryFacade
1919
) {}
2020

21-
async onModuleInit() {
21+
async onModuleInit(): Promise<void> {
2222
this.loggerService.debug('>>> Entering CliInitializationService.onModuleInit');
2323

2424
try {

src/application/commands/config/config.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class ConfigCommand extends DomainCommandRunner {
116116
data: { key: options.key, value: options.value }
117117
});
118118
} else {
119-
const result = this.configCommandService.viewConfigKey(options.key);
119+
this.configCommandService.viewConfigKey(options.key);
120120

121121
if (isJsonOutput) {
122122
const configResult = this.configCommandService.getConfig();

src/application/commands/docs/generate-docs.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class GenerateDocsCommand extends DomainCommandRunner {
2525
super(uiFacade, errorService, repositoryService, loggerService);
2626
}
2727

28-
async run(passedParams: string[], options?: Record<string, any>): Promise<void> {
28+
async run(_passedParams: string[], _options?: Record<string, any>): Promise<void> {
2929
await this.executeWithErrorHandling('generate-docs', async () => {
3030
this.loggerService.info('Starting documentation generation...');
3131
const result = await this.documentationService.generateDocumentation();

src/application/commands/env/env.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class EnvCommand extends DomainCommandRunner {
3737
}
3838

3939
async run(passedParams: string[], options?: IParsedEnvOptions): Promise<void> {
40-
const opts = options || {};
40+
const _opts = options || {};
4141
await this.executeWithErrorHandling('env command', async () => {
4242
await this.envInteractionOrchestratorService.startEnvInteractionWorkflow(this);
4343
});

src/application/commands/execute/execute.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class ExecuteCommand extends DomainCommandRunner {
100100
return val;
101101
}
102102

103-
@Option({ flags: '-n, --nonInteractive', description: 'Run without prompts', defaultValue: true})
103+
@Option({ flags: '-n, --nonInteractive', description: 'Run without prompts', defaultValue: true })
104104
parseNonInteractive(val: boolean): boolean {
105105
return val;
106106
}

src/application/commands/flush/flush.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class FlushCommand extends DomainCommandRunner {
2525
super(uiFacade, errorService, repositoryService, loggerService);
2626
}
2727

28-
async run(passedParams: string[], options?: Record<string, any>): Promise<void> {
28+
async run(_passedParams: string[], _options?: Record<string, any>): Promise<void> {
2929
await this.executeWithErrorHandling('flush command', async () => {
3030
const confirmResult = await this.flushCommandService.confirmFlush(this);
3131

src/application/commands/fragment/list-fragment.command.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ export class ListFragmentCommand extends FragmentBaseCommandRunner {
170170
category: cat,
171171
count: fragmentsByCategory[cat].length
172172
}));
173-
const tableData = this.uiFacade.tableRenderer.formatCategoryTable(tableDataInput, {
174-
includeDescriptions: false
175-
});
173+
const tableData = this.uiFacade.tableRenderer.formatCategoryTable(tableDataInput);
176174
this.uiFacade.printSectionHeader(
177175
FRAGMENT_UI.SECTION_HEADER.FRAGMENT_CATEGORIES,
178176
FRAGMENT_UI.SECTION_HEADER.CATEGORIES_ICON
@@ -323,7 +321,7 @@ export class ListFragmentCommand extends FragmentBaseCommandRunner {
323321
}
324322
}
325323

326-
private async createNewCategory(fragmentsByCategory: Record<string, PromptFragment[]>): Promise<void> {
324+
private async createNewCategory(_fragmentsByCategory: Record<string, PromptFragment[]>): Promise<void> {
327325
this.uiFacade.clearConsole();
328326
this.uiFacade.printSectionHeader(
329327
FRAGMENT_UI.SECTION_HEADER.CREATE_CATEGORY,
@@ -418,7 +416,7 @@ export class ListFragmentCommand extends FragmentBaseCommandRunner {
418416

419417
private async handleEmptyCategory(
420418
category: string,
421-
fragmentsByCategory: Record<string, PromptFragment[]>
419+
_fragmentsByCategory: Record<string, PromptFragment[]>
422420
): Promise<void> {
423421
this.uiFacade.clearConsole();
424422
this.uiFacade.printSectionHeader(

src/application/commands/menu/menu.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class MenuCommand extends BaseCommandRunner {
2525
super(uiFacade, errorService, repositoryService);
2626
}
2727

28-
async run(passedParams: string[], options?: Record<string, any>): Promise<void> {
28+
async run(_passedParams: string[], _options?: Record<string, any>): Promise<void> {
2929
this.loggerService.debug('MenuCommand run: Starting main menu loop via MenuCommandService.');
3030

3131
try {

src/application/commands/prompt/create-prompt.command.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@ Use the following syntax to avoid errors:
428428
spinner?.fail('AI analysis failed.');
429429
this.loggerService.warn('AI analysis failed, using basic metadata.');
430430
}
431-
} catch (error) {
431+
// eslint-disable-next-line unused-imports/no-unused-vars
432+
} catch (_error) {
432433
this.loggerService.warn('AI analysis failed, using basic metadata.');
433434
}
434435
}
@@ -454,7 +455,8 @@ Use the following syntax to avoid errors:
454455
}));
455456
const selection = await this.selectMenu<string | 'back'>('Select primary category:', choices);
456457
return selection === 'back' ? null : selection;
457-
} catch (error) {
458+
// eslint-disable-next-line unused-imports/no-unused-vars
459+
} catch (_error) {
458460
this.loggerService.error('Failed load categories');
459461
return await this.getInput('Enter primary category:', { allowCancel: true });
460462
}

0 commit comments

Comments
 (0)