You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERRORS="${ERRORS}\n❌ Feature flags must not be hardcoded to boolean literals!\n\nFound hardcoded flags:\n${HARDCODED}\n\nFeature flags should derive their values from environment variables.\n"
56
+
fi
57
+
58
+
echo "Checking feature flag naming conventions..."
59
+
60
+
# Check that all export const (except functions) start with 'is'
61
+
# This finds exports like "export const someFlag" that don't start with "is" or "get"
ERRORS="${ERRORS}\n❌ Feature flags must use 'is' prefix for boolean flags!\n\nFound incorrectly named flags:\n${BAD_NAMES}\n\nExample: 'hostedMode' should be 'isHostedMode'\n"
66
+
fi
67
+
68
+
if [ -n "$ERRORS" ]; then
69
+
echo ""
70
+
echo -e "$ERRORS"
71
+
exit 1
72
+
fi
73
+
74
+
echo "✅ All feature flags are properly configured"
0 commit comments