@@ -308,7 +308,7 @@ class FileDebouncer {
308308 shouldCheck ( filePath ) {
309309 const now = Date . now ( ) ;
310310 const lastCheck = this . recentChecks . get ( filePath ) || 0 ;
311-
311+
312312 // If we checked this file recently (within debounce window), skip
313313 if ( now - lastCheck < this . debounceMs ) {
314314 log . debug ( `Debouncing check for ${ path . basename ( filePath ) } (last check ${ now - lastCheck } ms ago)` ) ;
@@ -371,7 +371,7 @@ class FileDebouncer {
371371 clearTimeout ( timeoutId ) ;
372372 }
373373 this . pendingChecks . clear ( ) ;
374-
374+
375375 // Clear cleanup interval
376376 if ( this . cleanupInterval ) {
377377 clearInterval ( this . cleanupInterval ) ;
@@ -541,8 +541,8 @@ function analyzeFileContext(filePath, content) {
541541 // Check for incomplete import patterns
542542 const lines = content . split ( '\n' ) ;
543543 const importLines = lines . filter ( line => line . trim ( ) . startsWith ( 'import ' ) ) ;
544- const nonImportLines = lines . filter ( line =>
545- line . trim ( ) &&
544+ const nonImportLines = lines . filter ( line =>
545+ line . trim ( ) &&
546546 ! line . trim ( ) . startsWith ( 'import ' ) &&
547547 ! line . trim ( ) . startsWith ( '//' ) &&
548548 ! line . trim ( ) . startsWith ( '/*' )
@@ -599,7 +599,7 @@ function analyzeFileContext(filePath, content) {
599599 }
600600 return false ;
601601 } ) ;
602-
602+
603603 if ( hasActualEmptyFunctions ) {
604604 reasons . push ( 'Found functions with empty or TODO-marked bodies' ) ;
605605 shouldSkip = true ;
@@ -1100,7 +1100,7 @@ function isSourceFile(filePath) {
11001100 */
11011101function printSummary ( problemCounts , autofixes ) {
11021102 const problems = [ ] ;
1103-
1103+
11041104 if ( problemCounts . typescript > 0 ) {
11051105 problems . push ( `TypeScript: ${ problemCounts . typescript } error${ problemCounts . typescript > 1 ? 's' : '' } ` ) ;
11061106 }
@@ -1113,7 +1113,7 @@ function printSummary(problemCounts, autofixes) {
11131113 if ( problemCounts . common > 0 ) {
11141114 problems . push ( `Code issues: ${ problemCounts . common } problem${ problemCounts . common > 1 ? 's' : '' } ` ) ;
11151115 }
1116-
1116+
11171117 if ( problems . length > 0 ) {
11181118 console . error ( problems . join ( ', ' ) ) ;
11191119 }
@@ -1175,25 +1175,25 @@ async function main() {
11751175 if ( totalProblems > 0 ) {
11761176 printSummary ( problemCounts , autofixes ) ;
11771177 console . error ( `${ colors . yellow } 💡 Remember to resolve the issues before moving on to another file${ colors . reset } ` ) ;
1178-
1178+
11791179 // Generate specific commands for this file
11801180 const relativePath = path . relative ( projectRoot , filePath ) ;
11811181 const commands = [ ] ;
1182-
1182+
11831183 if ( problemCounts . typescript > 0 ) {
11841184 commands . push ( `pnpm run typecheck:brief` ) ;
11851185 }
11861186 if ( problemCounts . eslint > 0 ) {
1187- commands . push ( `npx eslint "${ relativePath } "` ) ;
1187+ commands . push ( `pnpm exec eslint "${ relativePath } "` ) ;
11881188 }
11891189 if ( problemCounts . prettier > 0 ) {
1190- commands . push ( `npx prettier --check "${ relativePath } "` ) ;
1190+ commands . push ( `pnpm exec prettier --check "${ relativePath } "` ) ;
11911191 }
1192-
1192+
11931193 if ( commands . length > 0 ) {
11941194 console . error ( `${ colors . blue } 💡 Run: ${ commands . join ( ' && ' ) } ${ colors . reset } ` ) ;
11951195 }
1196-
1196+
11971197 console . error ( `${ colors . yellow } ⚠ ${ path . basename ( filePath ) } - has issues to resolve${ colors . reset } ` ) ;
11981198 process . exit ( 0 ) ; // Advisory only - don't block workflow
11991199 } else {
0 commit comments