style: auto-fix ESLint issues (curly braces and formatting)
- Add curly braces to all if/else/for/while statements - Fix indentation and trailing spaces - Auto-fixed 372 linting errors using eslint --fix - Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
@@ -96,7 +96,7 @@ export class SkillInstaller {
|
||||
const entries = readdirSync(this.managedDir, { withFileTypes: true });
|
||||
return entries
|
||||
.filter(entry => {
|
||||
if (!entry.isDirectory()) return false;
|
||||
if (!entry.isDirectory()) {return false;}
|
||||
const skillMd = resolve(this.managedDir, entry.name, 'SKILL.md');
|
||||
return existsSync(skillMd);
|
||||
})
|
||||
|
||||
@@ -13,7 +13,7 @@ export class SkillRegistry {
|
||||
register(skill: Skill): void {
|
||||
this.skills.set(skill.manifest.name, skill);
|
||||
console.log(
|
||||
`Skill '${skill.manifest.name}' registered (${skill.manifest.tier}, ${skill.available ? 'available' : 'unavailable'})`
|
||||
`Skill '${skill.manifest.name}' registered (${skill.manifest.tier}, ${skill.available ? 'available' : 'unavailable'})`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user