Skip to content

Commit 069be49

Browse files
committed
Fix lint
1 parent a685620 commit 069be49

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

packages/cli/src/__tests__/lib/SkillManager.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ describe("SkillManager", () => {
563563
});
564564

565565
describe("updateSkills", () => {
566-
const mockCacheDir = path.join(os.homedir(), ".ai-devkit", "skills");
567566

568567
beforeEach(() => {
569568
jest.spyOn(console, "log").mockImplementation(() => { });

packages/cli/src/__tests__/util/terminal-ui.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ describe('TerminalUI', () => {
223223

224224
const calls = consoleLogSpy.mock.calls;
225225
// Check that rows start with indent
226-
expect(calls[2][0]).toMatch(/^ /);
226+
expect(calls[2][0]).toMatch(/^ {2}/);
227227
});
228228

229229
it('should use custom indent when provided', () => {
@@ -235,7 +235,7 @@ describe('TerminalUI', () => {
235235

236236
const calls = consoleLogSpy.mock.calls;
237237
// Check that rows start with custom indent
238-
expect(calls[2][0]).toMatch(/^ /);
238+
expect(calls[2][0]).toMatch(/^ {4}/);
239239
});
240240

241241
it('should handle empty rows', () => {

packages/cli/src/lib/SkillManager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export class SkillManager {
6464
const gitUrl = registry.registries[registryId];
6565
const cachedPath = path.join(SKILL_CACHE_DIR, registryId);
6666
if (!gitUrl && !await fs.pathExists(cachedPath)) {
67-
const available = Object.keys(registry.registries);
6867
throw new Error(
6968
`Registry "${registryId}" not found.`
7069
);

packages/cli/src/util/terminal-ui.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ora from 'ora';
66
* Removes ANSI escape codes from user-provided strings
77
*/
88
const sanitize = (message: string): string => {
9+
// eslint-disable-next-line no-control-regex
910
return message.replace(/\x1b\[[0-9;]*m/g, '');
1011
};
1112

0 commit comments

Comments
 (0)