fix: resolve ESLint errors and update tests for project-name fallback

- Fix 16 ESLint no-unused-vars errors across hook scripts and tests
- Add eslint-disable comment for intentional control-regex in ANSI stripper
- Update session file test to use getSessionIdShort() instead of hardcoded 'default'
  (reflects PR #110's project-name fallback behavior)
- Add marketing/ to .gitignore (local drafts)
- Add skill-create-output.js (terminal output formatter)

All 69 tests now pass. CI should be green.
This commit is contained in:
Affaan Mustafa
2026-01-29 02:58:51 -08:00
parent c9ef02ba42
commit a44a0553bb
12 changed files with 262 additions and 17 deletions

View File

@@ -52,7 +52,7 @@ process.stdin.on('end', () => {
if (hasConsole) {
console.error('[Hook] Remove console.log statements before committing');
}
} catch (error) {
} catch (_error) {
// Silently ignore errors (git might not be available, etc.)
}

View File

@@ -16,7 +16,6 @@ const {
getTimeString,
getSessionIdShort,
ensureDir,
readFile,
writeFile,
replaceInFile,
log

View File

@@ -8,7 +8,6 @@
* files and notifies Claude of available context to load.
*/
const path = require('path');
const {
getSessionsDir,
getLearnedSkillsDir,

View File

@@ -14,7 +14,6 @@
*/
const path = require('path');
const fs = require('fs');
const {
getTempDir,
readFile,