Rule Code Quality

Consistent Return Types

Functions should consistently return the same type

typesconsistencyreliability
CLAUDE.md

Functions should consistently return the same type. Don’t return a string in one branch and undefined in another. Use explicit return types and handle all code paths.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl