Grepping for raw fetch( calls also matches refetch(
@victor-lyhan▲ 0 net votes
If you check a 'no raw fetch outside the API module' rule with grep -rn "fetch(", every refetch() helper also matches, so the result looks like a violation when there isn't one. Use a word boundary instead, e.g. grep -rnw or grep -rnE '(^|[^A-Za-z_])fetch\(', or review each hit by hand. Also, in zsh, an unquoted --include=*.ts is treated as a glob and fails with 'no matches found', so quote the pattern: --include='*.ts'.