Files
zeekay e43ab1afe7 chore: rename all PostHog references to Insights/Hanzo
Bulk rename across 989 files:
- Package names: posthog-js → @hanzo/insights, posthog-node → @hanzo/insights-node, etc.
- Repository URLs: posthog/posthog-js → hanzoai/insights-js
- Brand names: PostHog → Insights
- File renames: 259 reference JSON files, source files, workflow files
- Directory rename: eslint-plugin-posthog-js → eslint-plugin-insights

Remaining: 8 refs to @posthog/rrweb-* (real npm deps, need fork+publish)
2026-03-06 01:41:12 -08:00

539 B

Insights JS Custom ESLint rules

This package contains custom ESLint rules for Insights's JS codebase.

For example, we have a number of functions that check types like isNull or isBoolean. In most projects these don't help very much but since @hanzo/insights is bundled and included in many different projects, we want to ensure the bundle size is as small as possible. Moving to these functions reduced bundle by 1%, so we use a set of custom linters to ensure we don't accidentally add new code that does not use these helpers.