mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-30 19:00:57 +08:00
* feat(rules,skills): add React Native / Expo rules pack and react-native-patterns skill * fix(rules,skills): address review feedback — safeParse nav example, drop deprecated sentry-expo, memoize list renderItem, clarify New Architecture SDK support * fix(rules,skills): drop deprecated Flipper, surface permission-denied state in location hook
1.2 KiB
1.2 KiB
paths
| paths | ||
|---|---|---|
|
React Native / Expo Hooks
This file extends common/hooks.md with React Native / Expo-specific automation guidance.
These are recommended PostToolUse automations to keep RN/Expo code healthy. Wire them in your hook runtime (or run manually); adapt commands to your package manager.
Suggested PostToolUse checks (on edit of .ts/.tsx)
- Type check:
tsc --noEmit— catch type errors early. - Lint:
npx expo lint(useseslint-config-expo; flat configeslint.config.jsis the default from SDK 53+). - Format:
prettier --writeon changed files.
Pre-release / periodic
npx expo-doctor— validates Expo/native dependency health and config.npx expo install --check— keeps native deps aligned with the installed Expo SDK.npm audit— dependency vulnerability scan.
Notes
- Do not run heavy native builds inside fast edit hooks; keep edit-time hooks to typecheck/lint/format.
- Reserve
eas build/ E2E for explicit commands or CI, not per-edit automation. - Keep these consistent with ECC hook runtime controls (
ECC_HOOK_PROFILE,ECC_DISABLED_HOOKS).