:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(lint): resolve oxlint 1.72.0 errors after upgrade (#70404)
mendral-app[bot]f41423d8e9cd
diff --git a/.oxlintrc.json b/.oxlintrc.jsonindex 6988e5bf69f4..b1fcd11ef5ff 100644--- a/.oxlintrc.json+++ b/.oxlintrc.json@@ -13,7 +13,7 @@"nodejs",".semgrep",".github/actions/paths-filter",- ".github/scripts/codeowners.js",+ ".github/scripts","common/hogvm/typescript","common/hogvm/typescript/dist","common/plugin_transpiler/dist",diff --git a/frontend/src/layout/navigation-3000/components/MinimalNavigation.tsx b/frontend/src/layout/navigation-3000/components/MinimalNavigation.tsxindex fce69b711564..a9236a734fbc 100644--- a/frontend/src/layout/navigation-3000/components/MinimalNavigation.tsx+++ b/frontend/src/layout/navigation-3000/components/MinimalNavigation.tsx@@ -42,7 +42,7 @@ export function MinimalNavigation(): JSX.Element {)}<div className="flex items-center justify-end gap-2 flex-1"><ZenModeButton />- {(currentOrganization?.teams?.length ?? 0 > 1) ? (+ {(currentOrganization?.teams?.length ?? 0) > 1 ? (<ProjectMenubuttonProps={{size: 'lg',diff --git a/frontend/src/lib/components/DefinitionPopover/CohortPopoverInfo.tsx b/frontend/src/lib/components/DefinitionPopover/CohortPopoverInfo.tsxindex 20695a7448b4..c502fc8c4dec 100644--- a/frontend/src/lib/components/DefinitionPopover/CohortPopoverInfo.tsx+++ b/frontend/src/lib/components/DefinitionPopover/CohortPopoverInfo.tsx@@ -104,7 +104,7 @@ export function CohortPopoverInfo({ cohort }: { cohort: CohortType }): JSX.Eleme</>) : (<>- {(cohort.groups?.length || 0 > 0) && <LemonDivider className="DefinitionPopover my-2" />}+ {(cohort.groups?.length || 0) > 0 && <LemonDivider className="DefinitionPopover my-2" />}{cohort.groups &&cohort.groups.map((group, index) => (<DefinitionPopover.Section key={index}>diff --git a/frontend/src/scenes/onboarding/legacy/sdks/sdksLogic.tsx b/frontend/src/scenes/onboarding/legacy/sdks/sdksLogic.tsxindex 30f4dbfda76b..e59d39db05a9 100644--- a/frontend/src/scenes/onboarding/legacy/sdks/sdksLogic.tsx+++ b/frontend/src/scenes/onboarding/legacy/sdks/sdksLogic.tsx@@ -211,7 +211,7 @@ export const sdksLogic = kea<sdksLogicType>([},})- const hasEvents = !!(res.results?.length ?? 0 > 0)+ const hasEvents = !!((res.results?.length ?? 0) > 0)const snippetHosts = res.results?.map((result) => result[1]).filter((val) => !!val) ?? []if (hasEvents) {actions.setSnippetHosts(snippetHosts)diff --git a/frontend/src/toolbar/shims/shimConsumerIntegration.test.ts b/frontend/src/toolbar/shims/shimConsumerIntegration.test.tsindex aa0877b62a66..87ed50327ff6 100644--- a/frontend/src/toolbar/shims/shimConsumerIntegration.test.ts+++ b/frontend/src/toolbar/shims/shimConsumerIntegration.test.ts@@ -108,6 +108,7 @@ describe('shim consumer integration', () => {describe('themeLogic with shims', () => {it('mounts without error and provides isDarkModeOn', async () => {+ // eslint-disable-next-line no-restricted-imports -- testing shim layer requires real importconst { themeLogic } = await import('~/layout/navigation-3000/themeLogic')const logic = themeLogic.build()logic.mount()@@ -116,6 +117,7 @@ describe('shim consumer integration', () => {})it('isDarkModeOn falls through to system preference when sceneConfig is null', async () => {+ // eslint-disable-next-line no-restricted-imports -- testing shim layer requires real importconst { themeLogic } = await import('~/layout/navigation-3000/themeLogic')const logic = themeLogic.build()logic.mount()diff --git a/products/posthog_ai/frontend/components/tool/ReadFileContent.tsx b/products/posthog_ai/frontend/components/tool/ReadFileContent.tsxindex 4ef532e7b6e2..bd6b48a0c2cc 100644--- a/products/posthog_ai/frontend/components/tool/ReadFileContent.tsx+++ b/products/posthog_ai/frontend/components/tool/ReadFileContent.tsx@@ -55,7 +55,7 @@ export function ReadFileContent({ text, path }: { text: string; path?: string })const container = containerRef.currentlet disposed = false- // eslint-disable-next-line @typescript-eslint/no-floating-promises+ // eslint-disable-next-line @typescript-eslint/no-floating-promises, no-restricted-imports -- read-only viewer, no lazy facade neededimport('monaco-editor').then((monaco) => {if (disposed || !container) {return