Files
zeekay ec6f6b50c1 chore: kill ALL posthog — zero refs, zero filenames (1452 -> 0)
We own the ingestion server (hanzoai/insights: Django + rust/capture + nodejs
plugin) AND this SDK, so there is no external wire contract to preserve. The
server is already 100% posthog-free; this SDK was the last laggard.

- $last_posthog_reset -> $last_insights_reset. This FIXES A LIVE MISMATCH: the
  server taxonomy (insights/taxonomy/taxonomy.py, insights/insightsql/ai.py)
  already expected the insights form while the SDK emitted the posthog form.
- __PosthogExtensions__ -> __InsightsExtensions__; all PostHog/posthog/POSTHOG
  identifiers -> Insights/insights/INSIGHTS (src, tests, playground, playwright,
  scripts, rrweb subpackages, package.json keywords).
- Hosts: DEFAULT_PLUGIN_HOST + DEFAULT_NUXT_HOST + the core host default pointed
  at PostHog's cloud (us.i.posthog.com) — a real bug. All -> insights.hanzo.ai.
- Removed the us-assets/eu-assets CDN split in getRemoteConfig (PostHog-specific;
  Hanzo serves remote config from the same host) — it had degenerated to a no-op.
- Fixed generate-docs writing to a stray references/@hanzo/ subdir.
- Renamed the 3 posthog-named test files; dropped 58MB of stale reference
  snapshots named for upstream posthog versions we never shipped (they are
  generated output — references/ is now gitignored).

Verified: typecheck errors 42 (HEAD) -> 18 (all pre-existing test-mock
looseness); types package 0; every package.json valid with @hanzo/* names.
Guard: grep -rioE 'posthog' packages ... | wc -l  => 0
2026-07-16 09:09:18 -07:00

47 lines
1.9 KiB
JavaScript

module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
env: {
browser: true,
es2020: true,
node: true,
},
rules: {
// Disable prettier - rrweb formatting is normalized separately
'prettier/prettier': 'off',
// Disable rules that conflict with rrweb's codebase
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-require-imports': 'off',
'no-prototype-builtins': 'off',
'no-useless-escape': 'off',
'no-empty': 'off',
'prefer-const': 'off',
'no-constant-condition': 'off',
'no-extra-semi': 'off',
'no-var': 'off',
'no-global-assign': 'off',
// insights-js specific rules that don't apply to rrweb
'insights-js/no-direct-array-check': 'off',
'insights-js/no-direct-boolean-check': 'off',
'insights-js/no-direct-document-check': 'off',
'insights-js/no-direct-function-check': 'off',
'insights-js/no-direct-navigator-check': 'off',
'insights-js/no-direct-null-check': 'off',
'insights-js/no-direct-number-check': 'off',
'insights-js/no-direct-object-check': 'off',
'insights-js/no-direct-string-check': 'off',
'insights-js/no-direct-undefined-check': 'off',
'insights-js/no-direct-window-check': 'off',
'compat/compat': 'off',
},
ignorePatterns: ['dist/', 'node_modules/', '*.js', '*.cjs', '*.mjs'],
}