fix(#2090): resolve lint — drop unnecessary type assertion + unused vars
This commit is contained in:
@@ -111,7 +111,7 @@ function collectPathValues(root: unknown): string[] {
|
||||
function resolveToolName(tool: BeforeToolPayload['tool']): string {
|
||||
if (!tool) return '';
|
||||
if (typeof tool === 'string') return tool;
|
||||
const name = (tool as { name?: unknown }).name;
|
||||
const name = tool.name;
|
||||
return typeof name === 'string' ? name : '';
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,6 @@ test('PLANNING_PATH_PATTERN matches .planning/ paths on posix + windows separato
|
||||
});
|
||||
|
||||
test('PLANNING_PATH_PATTERN does NOT match non-planning paths', () => {
|
||||
const other = ['src/planning-utils.ts', 'docs/plan.md', '.planning-readme.txt'];
|
||||
// .planning-readme.txt must not match (boundary after .planning required)
|
||||
for (const p of ['src/planning-utils.ts', 'docs/plan.md']) {
|
||||
assert.ok(!PLANNING_PATH_PATTERN.test(p), `non-planning path must NOT match: ${p}`);
|
||||
|
||||
@@ -28,7 +28,6 @@ const { createImperativeAdapter } = require('../gsd-core/bin/lib/adapter-imperat
|
||||
const {
|
||||
profileOf,
|
||||
negotiateHostCapabilities,
|
||||
shouldFlattenDispatch,
|
||||
PROFILE_BASELINES,
|
||||
UNDOCUMENTED,
|
||||
} = require('../gsd-core/bin/lib/host-integration.cjs');
|
||||
|
||||
Reference in New Issue
Block a user