Skip to content

Commit 13d0ff0

Browse files
michaeloboyleclaude
andcommitted
fix: Resolve linting errors blocking CI
Fixed 6 critical linting errors: - PatternQuery.ts:360 - Changed 'let sql' to 'const sql' - PatternQuery.ts:524 - Changed 'let whereClauses' to 'const whereClauses' - PatternQuery.ts:686 - Wrapped case block in braces to fix lexical declaration - PatternNodeBuilder.ts:7 - Removed unused PatternQuery import - bulk.ts:6 - Removed unused NodeData import - Database.ts:471 - Changed {} to Record<string, unknown> type All errors resolved ✅ 47 warnings remain (acceptable - don't block CI) 🚀 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
1 parent 6ddb697 commit 13d0ff0

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/core/Database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ export class GraphDatabase {
468468
* .exec();
469469
* ```
470470
*/
471-
pattern<T extends Record<string, any> = {}>(): PatternQuery<T> {
471+
pattern<T extends Record<string, unknown> = Record<string, unknown>>(): PatternQuery<T> {
472472
return new PatternQuery<T>(this.db);
473473
}
474474

src/query/PatternNodeBuilder.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55

66
import { PropertyFilter, PatternMatch, QueryPlan } from '../types/pattern';
7-
import type { PatternQuery } from './PatternQuery';
87

98
/**
109
* Builder for adding constraints to pattern nodes

src/query/PatternQuery.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ export class PatternQuery<T extends Record<string, GraphEntity>> {
357357
const filter = this.filters.get(varName);
358358
const { whereSql, whereParams } = this.buildFilterSQL(filter || {});
359359

360-
let sql = `${varName}_start AS (
360+
const sql = `${varName}_start AS (
361361
SELECT * FROM nodes
362362
WHERE type = ?${whereSql ? ` AND ${whereSql}` : ''}
363363
)`;
@@ -521,7 +521,7 @@ export class PatternQuery<T extends Record<string, GraphEntity>> {
521521
}
522522

523523
const fromClause = this.buildFromClause();
524-
let whereClauses: string[] = [];
524+
const whereClauses: string[] = [];
525525

526526
// Add cyclic constraint if needed
527527
if (this.isCyclic && this.cyclicVariable) {
@@ -682,13 +682,14 @@ export class PatternQuery<T extends Record<string, GraphEntity>> {
682682
conditions.push(`json_extract(properties, '$.${key}') != ?`);
683683
params.push(val);
684684
break;
685-
case '$in':
685+
case '$in': {
686686
const placeholders = (val as any[]).map(() => '?').join(', ');
687687
conditions.push(
688688
`json_extract(properties, '$.${key}') IN (${placeholders})`
689689
);
690690
params.push(...(val as any[]));
691691
break;
692+
}
692693
}
693694
}
694695
} else {

src/types/bulk.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* Efficient batch CRUD operations for graph databases
44
*/
55

6-
import { NodeData } from './index';
7-
86
/**
97
* Node specification for bulk creation
108
*/

0 commit comments

Comments
 (0)