The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
fix(config-protection): cover the TypeScript and ESM config variants
Nguyen Thanh Date19e74a7fc35
diff --git a/scripts/hooks/config-protection.js b/scripts/hooks/config-protection.jsindex f09989985..9250ee5b8 100644--- a/scripts/hooks/config-protection.js+++ b/scripts/hooks/config-protection.js@@ -67,10 +67,15 @@ const PROTECTED_FILES = new Set(['stylelint.config.js','stylelint.config.cjs','stylelint.config.mjs',+ 'stylelint.config.ts',+ 'stylelint.config.mts',+ 'stylelint.config.cts','.markdownlint.json','.markdownlint.jsonc','.markdownlint.yaml','.markdownlint.yml',+ '.markdownlint.cjs',+ '.markdownlint.mjs','.markdownlintrc',// markdownlint-cli2 reads its own config names, not `.markdownlint.*`.'.markdownlint-cli2.jsonc',diff --git a/tests/hooks/config-protection.test.js b/tests/hooks/config-protection.test.jsindex dd5eb528b..83c1bd797 100644--- a/tests/hooks/config-protection.test.js+++ b/tests/hooks/config-protection.test.js@@ -374,8 +374,13 @@ function runTests() {for (const name of ['stylelint.config.js','stylelint.config.mjs',+ 'stylelint.config.ts',+ 'stylelint.config.mts',+ 'stylelint.config.cts','.stylelintrc.js','.markdownlint.jsonc',+ '.markdownlint.cjs',+ '.markdownlint.mjs','.markdownlint-cli2.jsonc']) {const absPath = path.join(tmpDir, name);