chore(lint): fix lint errors seen when running npm run lint (#19844)

This commit is contained in:
Abhi
2026-02-21 13:33:25 -05:00
committed by GitHub
parent d2d345f41a
commit acb7f577de
40 changed files with 109 additions and 117 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
import * as fs from 'node:fs/promises';
import * as path from 'node:path';
import { glob } from 'glob';
import yaml from 'js-yaml';
import { load } from 'js-yaml';
import { debugLogger } from '../utils/debugLogger.js';
import { coreEvents } from '../utils/events.js';
@@ -40,7 +40,7 @@ function parseFrontmatter(
content: string,
): { name: string; description: string } | null {
try {
const parsed = yaml.load(content);
const parsed = load(content);
if (parsed && typeof parsed === 'object') {
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
const { name, description } = parsed as Record<string, unknown>;