: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
chore(deps): Upgrade oxlint to 1.72.0 (#69778)
Michael Matlokaf3677a619cf7
diff --git a/.agents/skills/establishing-code-ownership/ownership.js b/.agents/skills/establishing-code-ownership/ownership.jsindex 7154c8619e85..4a81be8bba6f 100755--- a/.agents/skills/establishing-code-ownership/ownership.js+++ b/.agents/skills/establishing-code-ownership/ownership.js@@ -55,19 +55,19 @@ function toHandle(owner) {// @PostHog/team-x or @team-x or team-x -> team-x (for comparison).function toSlug(owner) {- if (owner.startsWith('@PostHog/')) return owner.slice('@PostHog/'.length)- if (owner.startsWith('@')) return owner.slice(1)+ if (owner.startsWith('@PostHog/')) {return owner.slice('@PostHog/'.length)}+ if (owner.startsWith('@')) {return owner.slice(1)}return owner}function parseCodeowners(file, label) {- if (!fs.existsSync(file)) return []+ if (!fs.existsSync(file)) {return []}const rules = []fs.readFileSync(file, 'utf8').split('\n').forEach((raw, idx) => {const line = raw.trim()- if (!line || line.startsWith('#')) return+ if (!line || line.startsWith('#')) {return}const tokens = line.split(/\s+/)rules.push({pattern: tokens[0],@@ -86,7 +86,7 @@ function parseProductOwners(content) {let inOwners = falsefor (const raw of content.split('\n')) {const line = raw.replace(/\s+#.*$/, '').trimEnd()- if (!line.trim() || /^\s*#/.test(raw)) continue+ if (!line.trim() || /^\s*#/.test(raw)) {continue}const ownersMatch = line.match(/^owners\s*:\s*(.*)$/)if (ownersMatch) {const rest = ownersMatch[1].trim()@@ -95,7 +95,7 @@ function parseProductOwners(content) {const inner = rest.slice(1, close === -1 ? rest.length : close)for (const item of inner.split(',')) {const value = item.trim().replace(/^["']|["']$/g, '')- if (value) owners.push(value)+ if (value) {owners.push(value)}}} else if (rest) {owners.push(rest.replace(/^["']|["']$/g, ''))@@ -104,13 +104,13 @@ function parseProductOwners(content) {}continue}- if (!inOwners) continue+ if (!inOwners) {continue}const m = line.match(/^\s+-\s+(.+?)$/)if (m) {owners.push(m[1].replace(/^["']|["']$/g, '').trim())continue}- if (/^\S/.test(raw)) inOwners = false+ if (/^\S/.test(raw)) {inOwners = false}}return owners}@@ -118,15 +118,15 @@ function parseProductOwners(content) {function loadProductOwners(root) {const map = new Map()const productsDir = path.join(root, 'products')- if (!fs.existsSync(productsDir)) return map+ if (!fs.existsSync(productsDir)) {return map}for (const entry of fs.readdirSync(productsDir, { withFileTypes: true })) {- if (!entry.isDirectory()) continue+ if (!entry.isDirectory()) {continue}const yaml = path.join(productsDir, entry.name, 'product.yaml')- if (!fs.existsSync(yaml)) continue+ if (!fs.existsSync(yaml)) {continue}const owners = parseProductOwners(fs.readFileSync(yaml, 'utf8')).filter((slug) => slug && slug !== 'team-CHANGEME') // a bootstrap placeholder, not a real team.map(toHandle)- if (owners.length) map.set(entry.name, owners)+ if (owners.length) {map.set(entry.name, owners)}}return map}@@ -157,11 +157,11 @@ class Resolver {}}const hard = this.hardMatcher.matchingRule(file)- if (hard && hard.owners.length) return { owners: hard.owners, source: src(hard), reset: false }+ if (hard && hard.owners.length) {return { owners: hard.owners, source: src(hard), reset: false }}const soft = this.softMatcher.matchingRule(file)- if (soft && soft.owners.length) return { owners: soft.owners, source: src(soft), reset: false }+ if (soft && soft.owners.length) {return { owners: soft.owners, source: src(soft), reset: false }}const reset = hard || soft- if (reset) return { owners: [], source: src(reset), reset: true }+ if (reset) {return { owners: [], source: src(reset), reset: true }}return { owners: [], source: null, reset: false }}@@ -180,7 +180,7 @@ class Resolver {function listTrackedFiles(root, prefixes) {const args = ['ls-files', '-z']- if (prefixes.length) args.push('--', ...prefixes)+ if (prefixes.length) {args.push('--', ...prefixes)}const out = execFileSync('git', args, { cwd: root, maxBuffer: 1024 * 1024 * 512 }).toString('utf8')return out.split('\0').filter(Boolean)}@@ -194,7 +194,7 @@ function normalizeInputPath(root, raw) {if (!path.isAbsolute(raw)) {const underRoot = fs.existsSync(path.join(root, repoRel))const underCwd = fs.existsSync(path.join(process.cwd(), raw))- if (underRoot || !underCwd) return repoRel+ if (underRoot || !underCwd) {return repoRel}}const abs = path.isAbsolute(raw) ? raw : path.resolve(process.cwd(), raw)return path.relative(root, abs).split(path.sep).join('/')@@ -207,23 +207,23 @@ function cmdFile(resolver, paths, showAll) {console.error(`warning: ${raw} is outside the repo root; ownership only covers tracked repo files`)}const res = resolver.resolve(rel)- console.log(rel)+ console.info(rel)if (res.owners.length) {- console.log(` owners: ${res.owners.join(', ')}`)- console.log(` source: ${res.source}`)+ console.info(` owners: ${res.owners.join(', ')}`)+ console.info(` source: ${res.source}`)} else if (res.reset) {- console.log(' owners: none (ownership explicitly cleared)')- console.log(` source: ${res.source}`)+ console.info(' owners: none (ownership explicitly cleared)')+ console.info(` source: ${res.source}`)} else {- console.log(' owners: none (no product.yaml or CODEOWNERS match)')+ console.info(' owners: none (no product.yaml or CODEOWNERS match)')}if (showAll) {const matches = resolver.allMatches(rel)if (matches.length) {- console.log(' all CODEOWNERS matches (last wins):')+ console.info(' all CODEOWNERS matches (last wins):')for (const rule of matches) {const owners = rule.owners.length ? rule.owners.join(', ') : '(reset)'- console.log(` ${rule.source}:${rule.lineno} ${rule.pattern} -> ${owners}`)+ console.info(` ${rule.source}:${rule.lineno} ${rule.pattern} -> ${owners}`)}}}@@ -234,19 +234,19 @@ function cmdTeam(resolver, team, prefixes) {const target = toSlug(team).toLowerCase()const files = listTrackedFiles(resolver.root, prefixes)const owned = files.filter((f) => resolver.resolve(f).owners.some((o) => toSlug(o).toLowerCase() === target))- for (const f of owned) console.log(f)+ for (const f of owned) {console.info(f)}console.error(`${owned.length} file(s) owned by ${team}`)}function cmdUnowned(resolver, prefixes) {const files = listTrackedFiles(resolver.root, prefixes)const unowned = files.filter((f) => resolver.resolve(f).owners.length === 0)- for (const f of unowned) console.log(f)+ for (const f of unowned) {console.info(f)}console.error(`${unowned.length} unowned of ${files.length} tracked file(s)`)}function usage(message) {- if (message) console.error(`error: ${message}`)+ if (message) {console.error(`error: ${message}`)}console.error('usage:')console.error(' ownership.js file <path>... [--all] who owns these files')console.error(' ownership.js team <slug-or-handle> [prefix...] every tracked file a team owns')@@ -256,14 +256,14 @@ function usage(message) {function main(argv) {const [command, ...rest] = argv- if (!command || command === '-h' || command === '--help') usage()+ if (!command || command === '-h' || command === '--help') {usage()}const resolver = new Resolver(REPO_ROOT)if (command === 'file') {const paths = rest.filter((a) => a !== '--all')- if (!paths.length) usage('file needs at least one path')+ if (!paths.length) {usage('file needs at least one path')}cmdFile(resolver, paths, rest.includes('--all'))} else if (command === 'team') {- if (!rest.length) usage('team needs a slug or handle')+ if (!rest.length) {usage('team needs a slug or handle')}cmdTeam(resolver, rest[0], rest.slice(1))} else if (command === 'unowned') {cmdUnowned(resolver, rest)diff --git a/.github/scripts/check-docs-links.js b/.github/scripts/check-docs-links.jsindex f19d84ff68c8..ef74100b8c1d 100644--- a/.github/scripts/check-docs-links.js+++ b/.github/scripts/check-docs-links.js@@ -43,8 +43,8 @@ function extractLinks(content) {function resolveRelativeLink(fromFile, link) {const target = link.split('#')[0]- if (!target) return null- if (/^https?:\/\/|^mailto:|^\//.test(target)) return null+ if (!target) {return null}+ if (/^https?:\/\/|^mailto:|^\//.test(target)) {return null}const dir = path.dirname(fromFile)const resolved = path.resolve(dir, target)@@ -70,7 +70,7 @@ function resolveRelativeLink(fromFile, link) {]for (const candidate of candidates) {- if (fs.existsSync(candidate)) return null // found, no error+ if (fs.existsSync(candidate)) {return null} // found, no error}return { file: path.relative(DOCS_ROOT, fromFile), link, resolved: path.relative(DOCS_ROOT, resolved) }@@ -80,7 +80,7 @@ function resolveRelativeLink(fromFile, link) {// e.g. "handbook/engineering/project-structure" if published/handbook/engineering/project-structure.md existsfunction buildPublishedUrlIndex() {const index = new Set()- if (!fs.existsSync(PUBLISHED_ROOT)) return index+ if (!fs.existsSync(PUBLISHED_ROOT)) {return index}for (const file of findMarkdownFiles(PUBLISHED_ROOT)) {let rel = path.relative(PUBLISHED_ROOT, file)@@ -164,7 +164,7 @@ async function checkPosthogUrls(urls) {const batch = urls.slice(i, i + MAX_CONCURRENT)const results = await Promise.all(batch.map(fetchWithRetry))for (const r of results) {- if (!r.ok) failures.push(r)+ if (!r.ok) {failures.push(r)}}}return failures@@ -172,72 +172,72 @@ async function checkPosthogUrls(urls) {async function main() {if (!fs.existsSync(DOCS_ROOT)) {- console.log('No docs/ directory found, skipping.')+ console.info('No docs/ directory found, skipping.')process.exit(0)}const files = findMarkdownFiles(DOCS_ROOT)- console.log(`Found ${files.length} markdown files in docs/\n`)+ console.info(`Found ${files.length} markdown files in docs/\n`)let exitCode = 0// 1. Check relative links- console.log('--- Checking relative links ---')+ console.info('--- Checking relative links ---')const brokenRelative = []for (const file of files) {const content = fs.readFileSync(file, 'utf8')const links = extractLinks(content)for (const link of links) {const err = resolveRelativeLink(file, link)- if (err) brokenRelative.push(err)+ if (err) {brokenRelative.push(err)}}}if (brokenRelative.length > 0) {for (const { file, link, resolved, reason } of brokenRelative) {const detail = reason || `resolved to ${resolved}`- console.log(` ❌ ${file}: ${link} (${detail})`)+ console.info(` ❌ ${file}: ${link} (${detail})`)}- console.log(`\n${brokenRelative.length} broken relative link(s) found.\n`)+ console.info(`\n${brokenRelative.length} broken relative link(s) found.\n`)exitCode = 1} else {- console.log(` ✅ All relative links resolve to existing files\n`)+ console.info(` ✅ All relative links resolve to existing files\n`)}// 2. Check for absolute links to local docs (should be relative)- console.log('--- Checking for absolute links to local docs ---')+ console.info('--- Checking for absolute links to local docs ---')const publishedIndex = buildPublishedUrlIndex()const shouldBeRelative = findAbsoluteLinksToLocalDocs(files, publishedIndex)if (shouldBeRelative.length > 0) {for (const { file, url } of shouldBeRelative) {- console.log(` ❌ ${file}: ${url} (exists locally, use a relative link instead)`)+ console.info(` ❌ ${file}: ${url} (exists locally, use a relative link instead)`)}- console.log(`\n${shouldBeRelative.length} link(s) should be relative.\n`)+ console.info(`\n${shouldBeRelative.length} link(s) should be relative.\n`)exitCode = 1} else {- console.log(` ✅ No absolute links to local docs found\n`)+ console.info(` ✅ No absolute links to local docs found\n`)}// 3. Check posthog.com links- console.log('--- Checking posthog.com links ---')+ console.info('--- Checking posthog.com links ---')const urls = collectPosthogUrls(files)if (urls.length === 0) {- console.log(' No posthog.com links found, skipping.\n')+ console.info(' No posthog.com links found, skipping.\n')} else {- console.log(` Found ${urls.length} unique posthog.com URLs to check`)+ console.info(` Found ${urls.length} unique posthog.com URLs to check`)const brokenUrls = await checkPosthogUrls(urls)if (brokenUrls.length > 0) {for (const { url, status } of brokenUrls) {- console.log(` ❌ ${url} (${status})`)+ console.info(` ❌ ${url} (${status})`)}- console.log(`\n${brokenUrls.length} broken posthog.com link(s) found.`)- console.log('These may be stale references to moved or deleted pages.\n')+ console.info(`\n${brokenUrls.length} broken posthog.com link(s) found.`)+ console.info('These may be stale references to moved or deleted pages.\n')exitCode = 1} else {- console.log(` ✅ All ${urls.length} posthog.com links are reachable\n`)+ console.info(` ✅ All ${urls.length} posthog.com links are reachable\n`)}}diff --git a/.github/scripts/ci-alerts-devex.js b/.github/scripts/ci-alerts-devex.jsindex 0a2cf3214aa9..680f257cec04 100644--- a/.github/scripts/ci-alerts-devex.js+++ b/.github/scripts/ci-alerts-devex.js@@ -77,7 +77,7 @@ async function fetchWorkflowRuns(github, owner, repo, workflowFile, perPage, { ftry {return await fetchSettledRuns(github, owner, repo, workflowFile, perPage, freshAsOf)} catch (err) {- if (!err.staleIndex || attempt >= STALE_PAGE_RETRIES) throw err+ if (!err.staleIndex || attempt >= STALE_PAGE_RETRIES) {throw err}await sleep(STALE_PAGE_RETRY_DELAY_MS)}}@@ -115,8 +115,8 @@ async function fetchSettledRuns(github, owner, repo, workflowFile, perPage, fresfor (const run of data.workflow_runs) {// In-progress/queued must neither count as nor break a failure streak (mirroring how// unreported commits classify 'unknown'); cancelled/skipped never reflect real health.- if (run.status !== 'completed') continue- if (run.conclusion === 'cancelled' || run.conclusion === 'skipped') continue+ if (run.status !== 'completed') {continue}+ if (run.conclusion === 'cancelled' || run.conclusion === 'skipped') {continue}settled.push({name: run.name,conclusion: run.conclusion,@@ -130,7 +130,7 @@ async function fetchSettledRuns(github, owner, repo, workflowFile, perPage, fres// Once a kept run is a non-failure it terminates the leading streak, so we have all we need.// A short raw page means there are no older runs to fetch.const streakBounded = settled.some((r) => !isFailure(r))- if (streakBounded || data.workflow_runs.length < perPage) break+ if (streakBounded || data.workflow_runs.length < perPage) {break}}return settled}@@ -154,7 +154,7 @@ function contiguousFailureSince(runs, count) {let oldest = runs[0]for (let i = 1; i < count; i++) {const gapMins = (new Date(dispatchedAt(runs[i - 1])).getTime() - new Date(dispatchedAt(runs[i])).getTime()) / 60000- if (!(gapMins <= STREAK_MAX_GAP_MINUTES)) break // NaN-safe+ if (!(gapMins <= STREAK_MAX_GAP_MINUTES)) {break} // NaN-safeoldest = runs[i]}return dispatchedAt(oldest)@@ -164,7 +164,7 @@ function contiguousFailureSince(runs, count) {function buildFailingMap(allWorkflowRuns) {const failing = {}for (const runs of allWorkflowRuns) {- if (runs.length === 0) continue+ if (runs.length === 0) {continue}const count = countConsecutiveFailures(runs)if (count > 0) {const latest = runs[0]@@ -207,13 +207,13 @@ function classifyCommits(commits, allWorkflowRuns) {const runsBySha = new Map()for (const runs of allWorkflowRuns) {for (const run of runs) {- if (!runsBySha.has(run.sha)) runsBySha.set(run.sha, [])+ if (!runsBySha.has(run.sha)) {runsBySha.set(run.sha, [])}runsBySha.get(run.sha).push(run)}}return commits.map((commit) => {const runs = runsBySha.get(commit.sha) || []- if (runs.length === 0) return { ...commit, status: 'unknown' }+ if (runs.length === 0) {return { ...commit, status: 'unknown' }}const red = runs.some(isFailure)return { ...commit, status: red ? 'red' : 'green' }})@@ -227,10 +227,10 @@ function leadingRedStreak(classified) {let count = 0let since = nullfor (const commit of classified) {- if (commit.status === 'green') break- if (commit.status !== 'red') continue+ if (commit.status === 'green') {break}+ if (commit.status !== 'red') {continue}count++- if (commit.date) since = commit.date+ if (commit.date) {since = commit.date}}return { count, since }}@@ -248,7 +248,7 @@ function defaultSlackClient(token, fetchImpl) {body: JSON.stringify(body),})const data = await res.json()- if (!data.ok) throw new Error(`slack ${method} failed: ${data.error}`)+ if (!data.ok) {throw new Error(`slack ${method} failed: ${data.error}`)}return data}return {@@ -262,7 +262,7 @@ function defaultSlackClient(token, fetchImpl) {url.searchParams.set('include_all_metadata', 'true')const res = await doFetch(url.toString(), { headers: { Authorization: `Bearer ${token}` } })const data = await res.json()- if (!data.ok) throw new Error(`slack conversations.history failed: ${data.error}`)+ if (!data.ok) {throw new Error(`slack conversations.history failed: ${data.error}`)}return data},}@@ -288,7 +288,7 @@ async function findActiveIncident(slack, channel) {const plural = (n, word) => `${n} ${word}${n === 1 ? '' : 's'}`function formatDuration(mins) {- if (mins < 60) return `${mins}m`+ if (mins < 60) {return `${mins}m`}const h = Math.floor(mins / 60)const m = mins % 60return m === 0 ? `${h}h` : `${h}h ${m}m`@@ -377,9 +377,9 @@ function buildThreadReply({ created = [], added = [], removed = [], commitStarte// Arm-neutral wording: the anchor bullet already says count vs. duration.parts.push(...created.map((wf) => `:red_circle: ${workflowLink(wf)} is now failing master`))}- if (added.length) parts.push(`:heavy_plus_sign: now also failing: ${added.map(workflowLink).join(', ')}`)- if (removed.length) parts.push(`:white_check_mark: recovered: ${removed.map(workflowLink).join(', ')}`)- if (commitStarted) parts.push(`:red_circle: commit-failure streak crossed the threshold`)+ if (added.length) {parts.push(`:heavy_plus_sign: now also failing: ${added.map(workflowLink).join(', ')}`)}+ if (removed.length) {parts.push(`:white_check_mark: recovered: ${removed.map(workflowLink).join(', ')}`)}+ if (commitStarted) {parts.push(`:red_circle: commit-failure streak crossed the threshold`)}return parts.join('\n')}@@ -478,7 +478,7 @@ module.exports = async ({ context, github, core }, { now: _now, slack: _slack, f// Earliest start across both active signals (preserve original on update); gap-bounded displaySince.const computeSince = () => {const times = blocking.map((b) => new Date(b.displaySince).getTime())- if (commitActive && commitStreakSince) times.push(new Date(commitStreakSince).getTime())+ if (commitActive && commitStreakSince) {times.push(new Date(commitStreakSince).getTime())}return times.length ? new Date(Math.min(...times)).toISOString() : now.toISOString()}diff --git a/.github/scripts/ci-alerts-devex.test.js b/.github/scripts/ci-alerts-devex.test.jsindex f31e28d7f014..fd2be563c1d1 100644--- a/.github/scripts/ci-alerts-devex.test.js+++ b/.github/scripts/ci-alerts-devex.test.js@@ -64,7 +64,7 @@ function commitsWithRuns(perCommitConclusions) {const runsByWorkflow = {}perCommitConclusions.forEach((conclusionsMap, i) => {for (const [wf, conclusion] of Object.entries(conclusionsMap)) {- if (!runsByWorkflow[wf]) runsByWorkflow[wf] = []+ if (!runsByWorkflow[wf]) {runsByWorkflow[wf] = []}runsByWorkflow[wf].push({name: wf === 'ci-backend.yml' ? 'Backend CI' : 'Frontend CI',status: 'completed',diff --git a/.github/scripts/monitor-github-rate-limit.js b/.github/scripts/monitor-github-rate-limit.jsindex 231ecdfd3509..3d456d5f2df0 100644--- a/.github/scripts/monitor-github-rate-limit.js+++ b/.github/scripts/monitor-github-rate-limit.js@@ -100,7 +100,7 @@ module.exports = async ({ github, context, core }, { now: _now, fetch: _fetch, slet emitted = 0let failures = 0for (const [resource, snapshot] of Object.entries(resources)) {- if (!snapshot || typeof snapshot.limit !== 'number' || typeof snapshot.remaining !== 'number') continue+ if (!snapshot || typeof snapshot.limit !== 'number' || typeof snapshot.remaining !== 'number') {continue}const properties = buildProperties({ resource, snapshot, observedAt, observedAtSeconds, repo, runId, trigger, source })core.info(`[${source}] ${resource}: ${properties.remaining}/${properties.limit} remaining (resets ${properties.reset_at})`)try {diff --git a/.github/scripts/turbo-discover-staleness.test.js b/.github/scripts/turbo-discover-staleness.test.jsindex 2612cf65d776..721d0a2a063e 100644--- a/.github/scripts/turbo-discover-staleness.test.js+++ b/.github/scripts/turbo-discover-staleness.test.js@@ -14,7 +14,6 @@ const {checkProductStaleness,productPrefix,productEffectiveCost,- STALENESS_COVERAGE_THRESHOLD,STALENESS_FALLBACK_SECONDS_PER_FILE,} = require('./turbo-discover')diff --git a/.github/scripts/turbo-discover.js b/.github/scripts/turbo-discover.jsindex af949fd55ef6..5530414d99d3 100644--- a/.github/scripts/turbo-discover.js+++ b/.github/scripts/turbo-discover.js@@ -174,9 +174,9 @@ function quarantinedSkipProducts(jsonText, todayISO) {}const products = new Set()for (const entry of parsed.entries) {- if (typeof entry?.id !== 'string' || !entry.id.startsWith('product:')) continue- if ((entry.runner ?? 'pytest') !== 'pytest' || entry.mode !== 'skip') continue- if (typeof entry.expires !== 'string' || entry.expires < todayISO) continue+ if (typeof entry?.id !== 'string' || !entry.id.startsWith('product:')) {continue}+ if ((entry.runner ?? 'pytest') !== 'pytest' || entry.mode !== 'skip') {continue}+ if (typeof entry.expires !== 'string' || entry.expires < todayISO) {continue}products.add(entry.id.slice('product:'.length))}return products@@ -278,11 +278,11 @@ function productPrefix(product) {// Check if .test_durations is stale for a product by comparing on-disk test// file coverage vs recorded entries. Returns { stale, fileCount, coveredCount, coverage }.function checkProductStaleness(product, durations) {- if (!durations) return { stale: true, fileCount: 0, coveredCount: 0, coverage: 0 }+ if (!durations) {return { stale: true, fileCount: 0, coveredCount: 0, coverage: 0 }}const dirName = product.replace(/-/g, '_')const productDir = path.join('products', dirName)const testFiles = collectTestFiles(productDir)- if (testFiles.length === 0) return { stale: false, fileCount: 0, coveredCount: 0, coverage: 0 }+ if (testFiles.length === 0) {return { stale: false, fileCount: 0, coveredCount: 0, coverage: 0 }}const prefix = productPrefix(product)// Build set of file paths that have at least one entry in durations@@ -297,7 +297,7 @@ function checkProductStaleness(product, durations) {let coveredCount = 0for (const file of testFiles) {- if (coveredFiles.has(file)) coveredCount+++ if (coveredFiles.has(file)) {coveredCount++}}const coverage = coveredCount / testFiles.length@@ -384,12 +384,12 @@ const DJANGO_SEGMENTS = {}function getSegmentDuration(segment, durations) {- if (!durations) return 0+ if (!durations) {return 0}const { include, exclude } = DJANGO_SEGMENTS[segment]let total = 0for (const [test, dur] of Object.entries(durations)) {- if (!include.some((p) => test.startsWith(p))) continue- if (exclude.some((p) => test.startsWith(p))) continue+ if (!include.some((p) => test.startsWith(p))) {continue}+ if (exclude.some((p) => test.startsWith(p))) {continue}total += dur}return total@@ -400,7 +400,7 @@ const DJANGO_FALLBACK_SHARDS = { Core: 38, CorePOE: 7, Temporal: 7 }function calculateShards(totalWorkSeconds, overheadSeconds) {const testBudget = DJANGO_TARGET_WALL_SECONDS - overheadSeconds- if (testBudget <= 0) return DJANGO_MAX_SHARDS+ if (testBudget <= 0) {return DJANGO_MAX_SHARDS}const shards = Math.ceil((totalWorkSeconds * DJANGO_SAFETY_FACTOR) / testBudget)return Math.max(DJANGO_MIN_SHARDS, Math.min(DJANGO_MAX_SHARDS, shards))}@@ -619,8 +619,8 @@ if (process.env.TURBO_SCM_BASE) {const allProductSet = new Set(allProducts)const productSet = new Set(products)for (const name of baseQuarantined) {- if (quarantinedProducts.has(name) || skipProducts.has(name)) continue- if (!allProductSet.has(name) || productSet.has(name)) continue+ if (quarantinedProducts.has(name) || skipProducts.has(name)) {continue}+ if (!allProductSet.has(name) || productSet.has(name)) {continue}console.error(`Quarantine lifted for '${name}' since ${process.env.TURBO_SCM_BASE} — forced into matrix`)products.push(name)}diff --git a/.oxlintrc.json b/.oxlintrc.jsonindex 1dbac04d8af9..6988e5bf69f4 100644--- a/.oxlintrc.json+++ b/.oxlintrc.json@@ -11,6 +11,9 @@"rust","cli","nodejs",+ ".semgrep",+ ".github/actions/paths-filter",+ ".github/scripts/codeowners.js","common/hogvm/typescript","common/hogvm/typescript/dist","common/plugin_transpiler/dist",@@ -28,7 +31,6 @@"no-irregular-whitespace": "off","require-await": "off","no-await-in-loop": "off",- "react/prop-types": "off","react/react-in-jsx-scope": "off","react/no-unescaped-entities": "off","react/jsx-no-target-blank": "off",@@ -138,7 +140,7 @@}],"react/forbid-dom-props": [- "error",+ "warn",{"forbid": [{@@ -148,6 +150,7 @@]}],+ "no-new-array": "warn","react/forbid-elements": ["error",{@@ -179,7 +182,7 @@"no-useless-rename": "error","no-useless-call": "error","import/no-cycle": [- "error",+ "warn",{"maxDepth": 10}diff --git a/.pi/extensions/phrocs.ts b/.pi/extensions/phrocs.tsindex 142536fbf802..077458f41ab1 100644--- a/.pi/extensions/phrocs.ts+++ b/.pi/extensions/phrocs.ts@@ -109,7 +109,7 @@ class McpStdioClient {async close(): Promise<void> {const proc = this.proc;- if (!proc) return;+ if (!proc) {return;}this.proc = null;this.failPending(new Error("phrocs MCP client closing"));proc.stdin?.end();@@ -136,7 +136,7 @@ class McpStdioClient {while (idx >= 0) {const line = this.buffer.slice(0, idx).trim();this.buffer = this.buffer.slice(idx + 1);- if (line) this.onLine(line);+ if (line) {this.onLine(line);}idx = this.buffer.indexOf("\n");}}@@ -148,9 +148,9 @@ class McpStdioClient {} catch {return;}- if (typeof msg.id !== "number") return;+ if (typeof msg.id !== "number") {return;}const waiting = this.pending.get(msg.id);- if (!waiting) return;+ if (!waiting) {return;}this.pending.delete(msg.id);clearTimeout(waiting.timer);if (waiting.onAbort && waiting.signal) {@@ -176,22 +176,22 @@ class McpStdioClient {}const id = this.nextId++;const timer = setTimeout(() => {- if (!this.pending.delete(id)) return;+ if (!this.pending.delete(id)) {return;}reject(new Error(`phrocs MCP request '${method}' timed out after ${REQUEST_TIMEOUT_MS}ms`));}, REQUEST_TIMEOUT_MS);const onAbort = signal? () => {- if (!this.pending.delete(id)) return;+ if (!this.pending.delete(id)) {return;}clearTimeout(timer);reject(new Error("phrocs MCP request aborted"));}: undefined;- if (signal && onAbort) signal.addEventListener("abort", onAbort, { once: true });+ if (signal && onAbort) {signal.addEventListener("abort", onAbort, { once: true });}this.pending.set(id, { resolve, reject, timer, onAbort, signal });stdin.write(`${JSON.stringify({ jsonrpc: "2.0", id, method, params })}\n`, (err) => {if (err && this.pending.delete(id)) {clearTimeout(timer);- if (signal && onAbort) signal.removeEventListener("abort", onAbort);+ if (signal && onAbort) {signal.removeEventListener("abort", onAbort);}reject(err);}});@@ -205,7 +205,7 @@ class McpStdioClient {private failPending(err: Error): void {for (const waiter of this.pending.values()) {clearTimeout(waiter.timer);- if (waiter.onAbort && waiter.signal) waiter.signal.removeEventListener("abort", waiter.onAbort);+ if (waiter.onAbort && waiter.signal) {waiter.signal.removeEventListener("abort", waiter.onAbort);}waiter.reject(err);}this.pending.clear();@@ -213,7 +213,7 @@ class McpStdioClient {}function jsonSchemaToTypeBox(schema: JsonSchema | undefined): TSchema {- if (!schema || typeof schema !== "object") return Type.Object({});+ if (!schema || typeof schema !== "object") {return Type.Object({});}const type = schema.type;const description = schema.description;@@ -247,7 +247,7 @@ function jsonSchemaToTypeBox(schema: JsonSchema | undefined): TSchema {if (type === "array") {return Type.Array(jsonSchemaToTypeBox(schema.items ?? {}), { description });}- if (type === "null") return Type.Null();+ if (type === "null") {return Type.Null();}if (schema.anyOf?.length || schema.oneOf?.length) {const variants = (schema.anyOf?.length ? schema.anyOf : schema.oneOf)!;return Type.Union(variants.map(jsonSchemaToTypeBox), { description });@@ -259,7 +259,7 @@ function formatToolResult(result: McpToolResult): string {const parts = (result.content ?? []).filter((c) => c.type === "text" && typeof c.text === "string").map((c) => c.text as string);- if (parts.length > 0) return parts.join("\n");+ if (parts.length > 0) {return parts.join("\n");}if (result.structuredContent !== undefined) {return typeof result.structuredContent === "string"? result.structuredContent@@ -268,19 +268,19 @@ function formatToolResult(result: McpToolResult): string {return "";}-export default function registerPhrocsExtension(pi: ExtensionAPI) {+export default function registerPhrocsExtension(pi: ExtensionAPI): void {let client: McpStdioClient | null = null;let startup: Promise<void> | null = null;let lastError: string | null = null;const registered = new Set<string>();- const setStatus = (text: string | undefined, ctx?: ExtensionContext) => {+ const setStatus = (text: string | undefined, ctx?: ExtensionContext): void => {ctx?.ui?.setStatus(STATUS_KEY, text);};const connect = async (ctx: ExtensionContext): Promise<void> => {- if (client) return;- if (startup) return startup;+ if (client) {return;}+ if (startup) {return startup;}setStatus("phrocs: starting…", ctx);const next = new McpStdioClient();@@ -293,7 +293,7 @@ export default function registerPhrocsExtension(pi: ExtensionAPI) {for (const tool of tools) {// Pi has no unregister API, so once a tool is registered// it stays for the session. Skip silently on reconnect.- if (registered.has(tool.name)) continue;+ if (registered.has(tool.name)) {continue;}if (pi.getAllTools().some((existing) => existing.name === tool.name)) {ctx.ui?.notify(`phrocs: skipped '${tool.name}' (name collision)`, "warning");continue;@@ -305,7 +305,7 @@ export default function registerPhrocsExtension(pi: ExtensionAPI) {description: tool.description ?? `phrocs MCP tool: ${tool.name}`,parameters: jsonSchemaToTypeBox(tool.inputSchema),async execute(_toolCallId, params, signal) {- if (!client) throw new Error("phrocs MCP client not connected");+ if (!client) {throw new Error("phrocs MCP client not connected");}const result = await client.callTool(tool.name, params as Record<string, unknown>, signal);const text = formatToolResult(result);if (result.isError) {@@ -343,7 +343,7 @@ export default function registerPhrocsExtension(pi: ExtensionAPI) {setStatus(undefined, ctx);const current = client;client = null;- if (current) await current.close();+ if (current) {await current.close();}});pi.registerCommand("phrocs-status", {@@ -355,7 +355,7 @@ export default function registerPhrocsExtension(pi: ExtensionAPI) {`last_error: ${lastError ?? "none"}`,];const tail = client?.stderrSnapshot().trim();- if (tail) lines.push(`stderr_tail:\n${tail.slice(-500)}`);+ if (tail) {lines.push(`stderr_tail:\n${tail.slice(-500)}`);}ctx.ui.notify(lines.join("\n"), lastError ? "warning" : "info");},});@@ -368,7 +368,7 @@ export default function registerPhrocsExtension(pi: ExtensionAPI) {// use the new `client` after reconnect.const current = client;client = null;- if (current) await current.close();+ if (current) {await current.close();}await connect(ctx);},});diff --git a/common/storybook/.storybook/decorators/withKea/withKea.tsx b/common/storybook/.storybook/decorators/withKea/withKea.tsxindex 244e1d9763e1..c14c2df1d3d0 100644--- a/common/storybook/.storybook/decorators/withKea/withKea.tsx+++ b/common/storybook/.storybook/decorators/withKea/withKea.tsx@@ -4,9 +4,9 @@ import { useAvailableFeatures } from '~/mocks/features'import { KeaStory } from './kea-story'-// eslint-disable-next-line rules-of-hooksexport const withKea: Decorator = (Story) => {// Reset enabled enterprise features. Overwrite this line within your stories.+ // eslint-disable-next-line react-hooks/rules-of-hooksuseAvailableFeatures([])return (<KeaStory>diff --git a/docs/onboarding/product-analytics/_snippets/person-profiles.tsx b/docs/onboarding/product-analytics/_snippets/person-profiles.tsxindex 09488031be29..459180def79b 100644--- a/docs/onboarding/product-analytics/_snippets/person-profiles.tsx+++ b/docs/onboarding/product-analytics/_snippets/person-profiles.tsx@@ -10,7 +10,7 @@ interface PersonProfilesProps {export const PersonProfiles = memo(({ language = 'javascript', file }: PersonProfilesProps): JSX.Element => {const { Markdown, CodeBlock, dedent } = useMDXComponents()- const getCodeAndFile = () => {+ const getCodeAndFile = (): { code: string; file: string } => {switch (language) {case 'python':return { code: '"$process_person_profile": False', file: file || 'Python' }diff --git a/frontend/src/lib/KeaDevTools.tsx b/frontend/src/lib/KeaDevTools.tsxindex 467a3e05001e..f16df01d81b0 100644--- a/frontend/src/lib/KeaDevTools.tsx+++ b/frontend/src/lib/KeaDevTools.tsx@@ -103,7 +103,7 @@ function clamp(value: number, min: number, max: number): number {return Math.min(Math.max(value, min), max)}-function compactJSON(x: unknown) {+function compactJSON(x: unknown): string {try {return JSON.stringify(x)} catch {@@ -1524,7 +1524,7 @@ function MemoryTree({rootId: stringstate: TreeStatedepth?: number-}) {+}): JSX.Element {try {const children = getChildrenSorted(rootValue)return (diff --git a/frontend/src/lib/components/ActivityLog/activityDescriptions/tagActivityDescriber.tsx b/frontend/src/lib/components/ActivityLog/activityDescriptions/tagActivityDescriber.tsxindex a294b3974e9f..5726a78ca7df 100644--- a/frontend/src/lib/components/ActivityLog/activityDescriptions/tagActivityDescriber.tsx+++ b/frontend/src/lib/components/ActivityLog/activityDescriptions/tagActivityDescriber.tsx@@ -41,7 +41,7 @@ const getRelatedObjectDescription = (context: any, preposition?: 'to' | 'from'):const displayName = getDisplayName()- const getObjectLink = () => {+ const getObjectLink = (): JSX.Element => {switch (objectType) {case 'dashboard':return (diff --git a/frontend/src/lib/components/ActivityLog/activityLogLogic.test.setup.ts b/frontend/src/lib/components/ActivityLog/activityLogLogic.test.setup.tsindex 33df2a5bc8b0..a322b3f542ca 100644--- a/frontend/src/lib/components/ActivityLog/activityLogLogic.test.setup.ts+++ b/frontend/src/lib/components/ActivityLog/activityLogLogic.test.setup.ts@@ -43,6 +43,7 @@ async function testSetup(scope: ActivityScope,url: string): Promise<ReturnType<typeof activityLogLogic.build>> {+ // eslint-disable-next-line react-hooks/rules-of-hooks -- useMocks is an MSW test helper, not a React hookuseMocks({get: {[url]: {diff --git a/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.stories.tsx b/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.stories.tsxindex 629e006690f8..bebd9673c820 100644--- a/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.stories.tsx+++ b/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.stories.tsx@@ -50,7 +50,7 @@ export function emptyNoAction(): JSX.Element {productName="Feature Flags"productKey={ProductKey.FEATURE_FLAGS}thingName="history record"- description={`History shows any feature flag changes that have been made. After making changes you'll see them logged here.`}+ description="History shows any feature flag changes that have been made. After making changes you'll see them logged here."/>)}diff --git a/frontend/src/lib/logic/scenes/useAttachedLogic.ts b/frontend/src/lib/logic/scenes/useAttachedLogic.tsindex 4ae010f53d15..71bf6c34a431 100644--- a/frontend/src/lib/logic/scenes/useAttachedLogic.ts+++ b/frontend/src/lib/logic/scenes/useAttachedLogic.ts@@ -20,6 +20,7 @@ export function useAttachedLogic(logic: BuiltLogic<Logic>, attachTo?: BuiltLogicreturn}const builtAttachTo = useMountedLogic(attachTo) // eslint-disable-line react-hooks/rules-of-hooks+ // eslint-disable-next-line react-hooks/rules-of-hooksuseEffect(() => {if (attachTo && builtAttachTo) {if (!('attachments' in attachTo)) {diff --git a/frontend/src/scenes/audit-logs/ExportsListHelpers.tsx b/frontend/src/scenes/audit-logs/ExportsListHelpers.tsxindex 873a8414cd7d..9decabf9fd4b 100644--- a/frontend/src/scenes/audit-logs/ExportsListHelpers.tsx+++ b/frontend/src/scenes/audit-logs/ExportsListHelpers.tsx@@ -80,7 +80,7 @@ export const getFilterTooltip = (exportAsset: ExportedAsset): JSX.Element => {const filterSections: JSX.Element[] = []if (filters.start_date || filters.end_date) {- const formatDate = (dateStr: string) => {+ const formatDate = (dateStr: string): string => {try {return dayjs(dateStr).format('YYYY-MM-DD HH:mm:ss')} catch {diff --git a/frontend/src/scenes/data-pipelines/batch-exports/batchExportBackfillsLogic.test.ts b/frontend/src/scenes/data-pipelines/batch-exports/batchExportBackfillsLogic.test.tsindex fdda07631b4e..c45141f62364 100644--- a/frontend/src/scenes/data-pipelines/batch-exports/batchExportBackfillsLogic.test.ts+++ b/frontend/src/scenes/data-pipelines/batch-exports/batchExportBackfillsLogic.test.ts@@ -84,6 +84,7 @@ describe('batchExportBackfillsLogic', () => {results: RawBatchExportBackfill[]next: string | null}): Promise<void> {+ // eslint-disable-next-line react-hooks/rules-of-hooks -- useMocks is an MSW test helper, not a React hookuseMocks({get: {[`/api/environments/:team_id/batch_exports/${MOCK_BATCH_EXPORT_ID}/`]: MOCK_BATCH_EXPORT_CONFIG,diff --git a/frontend/src/scenes/data-pipelines/batch-exports/batchExportRunsLogic.test.ts b/frontend/src/scenes/data-pipelines/batch-exports/batchExportRunsLogic.test.tsindex 0ce376a6cb0d..5b3f1e594122 100644--- a/frontend/src/scenes/data-pipelines/batch-exports/batchExportRunsLogic.test.ts+++ b/frontend/src/scenes/data-pipelines/batch-exports/batchExportRunsLogic.test.ts@@ -75,6 +75,7 @@ describe('batchExportRunsLogic', () => {// oxlint-disable-next-line react-hooks/rules-of-hooks -- useMocks is not a React hookasync function setupLogic(runsResponse?: { results: RawBatchExportRun[]; next: string | null }): Promise<void> {+ // eslint-disable-next-line react-hooks/rules-of-hooks -- useMocks is an MSW test helper, not a React hookuseMocks({get: {[`/api/environments/:team_id/batch_exports/${MOCK_BATCH_EXPORT_ID}/`]: MOCK_BATCH_EXPORT_CONFIG,diff --git a/frontend/src/scenes/session-recordings/player/inspector/components/ItemSummary.tsx b/frontend/src/scenes/session-recordings/player/inspector/components/ItemSummary.tsxindex f479e8396437..7b435a2fa3ec 100644--- a/frontend/src/scenes/session-recordings/player/inspector/components/ItemSummary.tsx+++ b/frontend/src/scenes/session-recordings/player/inspector/components/ItemSummary.tsx@@ -27,9 +27,7 @@ export function ItemSummary({ item }: { item: InspectorListItemSummary }): JSX.E(item.errorCount || 0) > 0 ? 'text-danger' : 'text-success')}>- <Tooltip- title={`A count of $exception events in this recording. Captured by PostHog's error tracking.`}- >+ <Tooltip title="A count of $exception events in this recording. Captured by PostHog's error tracking."><IconWarning className="mr-1" /><span>{pluralize(item.errorCount || 0, 'error')}</span></Tooltip>diff --git a/frontend/src/scenes/settings/user/scopes/ScopeAccessSelector/RequiredOrganizationAccessSelector.tsx b/frontend/src/scenes/settings/user/scopes/ScopeAccessSelector/RequiredOrganizationAccessSelector.tsxindex 4e91f6e192b6..f93cfb97bb4f 100644--- a/frontend/src/scenes/settings/user/scopes/ScopeAccessSelector/RequiredOrganizationAccessSelector.tsx+++ b/frontend/src/scenes/settings/user/scopes/ScopeAccessSelector/RequiredOrganizationAccessSelector.tsx@@ -24,6 +24,7 @@ export const RequiredOrganizationAccessSelector = ({{({ value, onChange }) => {const arrayValue = Array.isArray(value) ? value : []+ // eslint-disable-next-line react-hooks/rules-of-hooks -- effect lives in a LemonField render prop, which is always invokeduseEffect(() => {if (autoSelectFirst && arrayValue.length === 0 && organizations.length > 0) {onChange([organizations[0].id])diff --git a/frontend/src/scenes/settings/user/scopes/ScopeAccessSelector/RequiredTeamAccessSelector.tsx b/frontend/src/scenes/settings/user/scopes/ScopeAccessSelector/RequiredTeamAccessSelector.tsxindex 5a0429d46fc7..b9e6e6550a0c 100644--- a/frontend/src/scenes/settings/user/scopes/ScopeAccessSelector/RequiredTeamAccessSelector.tsx+++ b/frontend/src/scenes/settings/user/scopes/ScopeAccessSelector/RequiredTeamAccessSelector.tsx@@ -26,6 +26,7 @@ export const RequiredTeamAccessSelector = ({{({ value, onChange }) => {const arrayValue = Array.isArray(value) ? value : []+ // eslint-disable-next-line react-hooks/rules-of-hooks -- effect lives in a LemonField render prop, which is always invokeduseEffect(() => {if (autoSelectFirst && arrayValue.length === 0 && teams && teams.length > 0) {onChange([teams[0].id])diff --git a/frontend/src/test/insight-testing/mocks.ts b/frontend/src/test/insight-testing/mocks.tsindex cd21e9d0a667..e8513adcfd3d 100644--- a/frontend/src/test/insight-testing/mocks.ts+++ b/frontend/src/test/insight-testing/mocks.ts@@ -263,6 +263,7 @@ export function setupInsightMocks({]const responses: MockResponse[] = mockResponses ?? [...(additionalMockResponses ?? []), ...defaults]+ // eslint-disable-next-line react-hooks/rules-of-hooks -- useMocks is an MSW test helper, not a React hookuseMocks({get: {'/api/projects/:team/event_definitions': ({ request }) => {diff --git a/frontend/src/toolbar/experiments/WebExperimentVariant.tsx b/frontend/src/toolbar/experiments/WebExperimentVariant.tsxindex 9b42de12a772..449f5f730af6 100644--- a/frontend/src/toolbar/experiments/WebExperimentVariant.tsx+++ b/frontend/src/toolbar/experiments/WebExperimentVariant.tsx@@ -43,7 +43,7 @@ export function WebExperimentVariant({ variant }: WebExperimentVariantProps): JS}}}}- placeholder={`Example: "test-1"`}+ placeholder='Example: "test-1"'/></div>)}diff --git a/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar/package.json b/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar/package.jsonindex 1f996a20512d..529afcd9075d 100644--- a/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar/package.json+++ b/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar/package.json@@ -28,7 +28,7 @@"babel-jest": "^29.7.0","jest": "^29.7.0","oxfmt": "^0.35.0",- "oxlint": "^1.0.0",+ "oxlint": "^1.72.0","typescript": "^5.7.2"},"packageManager": "[email protected]",diff --git a/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar/pnpm-lock.yaml b/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar/pnpm-lock.yamlindex a48ea870f853..dd14833fb68a 100644--- a/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar/pnpm-lock.yaml+++ b/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar/pnpm-lock.yaml@@ -49,7 +49,7 @@ importers:specifier: ^0.35.0version: 0.35.0oxlint:- specifier: ^1.0.0+ specifier: ^1.72.0version: 1.72.0typescript:specifier: ^5.7.2diff --git a/package.json b/package.jsonindex b30be979a6f1..8b92753cf85d 100644--- a/package.json+++ b/package.json@@ -69,7 +69,7 @@"cssnano": "^7.0.6","markdownlint-cli2": "^0.18.1","oxfmt": "catalog:",- "oxlint": "^1.8.0",+ "oxlint": "^1.72.0","playwright": "1.60.0","postcss": "^8.5.15","postcss-preset-env": "^10.1.4",diff --git a/packages/quill/apps/storybook/.storybook/main.ts b/packages/quill/apps/storybook/.storybook/main.tsindex ca1fbd2b4e28..09223d12d6ca 100644--- a/packages/quill/apps/storybook/.storybook/main.ts+++ b/packages/quill/apps/storybook/.storybook/main.ts@@ -36,7 +36,7 @@ function quillTokensWatcher(): Plugin {}rebuildPending = falserebuilding = true- console.log('[quill-tokens-watcher] rebuilding tokens…')+ console.info('[quill-tokens-watcher] rebuilding tokens…')const proc = spawn('pnpm', ['exec', 'tsx', 'src/build.ts'], {cwd: tokensRoot,stdio: 'inherit',@@ -48,7 +48,7 @@ function quillTokensWatcher(): Plugin {proc.on('exit', (code) => {rebuilding = falseif (code === 0) {- console.log('[quill-tokens-watcher] rebuild ok → reloading')+ console.info('[quill-tokens-watcher] rebuild ok → reloading')server.ws.send({ type: 'full-reload' })} else {console.error('[quill-tokens-watcher] rebuild failed, exit', code)@@ -80,7 +80,7 @@ function quillTokensWatcher(): Plugin {rebuildTimer = setTimeout(() => rebuild(server), 100)})watcher.on('ready', () => {- console.log('[quill-tokens-watcher] watching', tokensSrc)+ console.info('[quill-tokens-watcher] watching', tokensSrc)})},closeBundle() {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex fd1ddf0d52e1..dbfc4397b20e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -234,8 +234,8 @@ importers:specifier: 'catalog:'version: 0.35.0oxlint:- specifier: ^1.8.0- version: 1.9.0+ specifier: ^1.72.0+ version: 1.72.0playwright:specifier: 1.60.0version: 1.60.0@@ -4641,8 +4641,8 @@ importers:specifier: 'catalog:'version: 0.35.0oxlint:- specifier: ^1.8.0- version: 1.9.0+ specifier: ^1.72.0+ version: 1.72.0pino-pretty:specifier: ^9.1.0version: 9.4.0@@ -4780,8 +4780,8 @@ importers:specifier: ^0.33.0version: 0.33.0oxlint:- specifier: ^1.8.0- version: 1.9.0+ specifier: ^1.72.0+ version: 1.72.0react:specifier: 18.3.1version: 18.3.1@@ -9432,47 +9432,125 @@ packages:cpu: [x64]os: [win32]- '@oxlint/[email protected]':- resolution: {integrity: sha512-VRxI/T0I4bq+xoaI0qNFeGPxOOganHlfLmx8JbFFZswoxMkm5lIvVYScDKLrsbbPSe4bcZ5v1DmX5sNGQ619Uw==}+ '@oxlint/[email protected]':+ resolution: {integrity: sha512-zhCmvn+1Mj3UchAc/90i99S0t7jJUsHmFVSPg4UWrjO8b8eaSGwscgO6QAUtvHBstkjQwBttQNswEnAF1mIQdA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [android]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-mtH+aY/ozv1eZoCUC2owjFAtyNBKHpJHygKeEu9zXXnQGW1Q2/qOpvx+I+Lf23+TvTz66F4iiXUbl2cGvoLPCQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [android]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-EvnajNPDtfknB3ZieeOOyDTwJn9QXDiwfnF4ZDQqART6RG6hjY4WigQcZdGoK2dkB3e1vrmEzN9aYbQCUkh/gQ==}+ engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [darwin]- '@oxlint/[email protected]':- resolution: {integrity: sha512-vMBa3eNrJMSBApXvsx6FgMuWCnNE+ETJJieLPhemZKctMNWOJQX+2i09CG2kb1IkmxagLapH7dZ4i0+Lf13mqg==}+ '@oxlint/[email protected]':+ resolution: {integrity: sha512-ZkCdEa/G80A7vEHfeCDz/+L3m33DE73v32mDKhgOIgz8Uwf0DFcK7+uu6qC+7LEhmz5fpOe1osWKyjSNMydFIQ==}+ engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [darwin]- '@oxlint/[email protected]':- resolution: {integrity: sha512-8wnMjloRbz7hPKvcgqd8HKNgkEgFJZvp9Los2pdE1CKh33msIxIXPGT3KKhYzyrtBaRaG2LJHshUPub02Q+x9A==}+ '@oxlint/[email protected]':+ resolution: {integrity: sha512-NroXv2vh+sxVY1uya/rM5pjhx1hm8BzlYpx9q67QP0Xhw5MH2bf5GJylpvLEC+781p1Xli/317EoV9AlGwViag==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [freebsd]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-0NDywYgfj279Ou/BcQuCYSj7NJwBfmWn5qc5uGO/Ny7fUWmXyIpvawqX/8acQlWG6IXelJsJhj+JAy6sjsKj0A==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-4vpXB06h65Ezsy4hRyrGjGrfa1SkVPii09yaajiYhmVpgsFiLD+KNxIx/BNAY+XiO+i1yqp9HHdwqM8VTqa5XQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-immaN4g2ZGFiOkKrvRX9LvzZdd2GkQM5wR+UyzYyUuyhUTXGQ4HKUJH18xp4G8OfhCVaVAJfKZxwE1r8+4hhaQ==}+ engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]libc: [glibc]- '@oxlint/[email protected]':- resolution: {integrity: sha512-elj9FTNXvq9oP8UedeHHq2R8lCtTmBGvUO/xLez734zVx3tvBl3avmuEfPBqR4wlUKDANExDh3Rg0pssflhw9w==}+ '@oxlint/[email protected]':+ resolution: {integrity: sha512-JGHS9Mnr7iWyyLDxgCv1MhzVpAckgptg00F2gnxt/GD7lQ2SW1BRcxHqhSTaSdDpjWRrBkBxMMh4+Hn3aVtExg==}+ engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]libc: [musl]- '@oxlint/[email protected]':- resolution: {integrity: sha512-d7VjQttKDgXKIYY3tm2GXTD83dyI+D8POGdPRT8GjhitHKasHQWFMBDG5iLp60FNc5Ky1cIe/2nwKW9ReQvhKw==}+ '@oxlint/[email protected]':+ resolution: {integrity: sha512-AOYgBZqxNshrg83P9v0RYv+m8s10Cqkj4/PxXFDhcS3k7FqsIG5+CxErshZCIN7G8iy4Y+VGfAsuEdar8AcbBg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-QMybPS5ij3/vrKG67mqzHwW++91sYxK/PPUVi6SBtNCEzW4niS52fVBdXbQ6nou0wWbUPEpx8Sl/ZjtgE3clXA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-gOc3W7JV0PXRpIL7stUlLe3Wa9Gp0Kdlup87IT3gHDvPKck2xNgMIl/Gs2lldYY2lyXZDC4rWi3hmoLUobkgbQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [riscv64]+ os: [linux]+ libc: [musl]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-rpGxph+FjjHcYI5q6uxB3Az+tnfmEnDbSA8+PK9ZE/VzyUAkvBOMeuY7ZQMhu5mpZH7YQDsTdW6Cx4kV/msc6w==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-WND+uhf/Ko13SLqQMWQUgsZuLvYYEvL0ZKgg0tgGYfLqxG7l8Ju123fHDMJyYSDl5E3bUbpFUuii/OvMreFQzw==}+ engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]libc: [glibc]- '@oxlint/[email protected]':- resolution: {integrity: sha512-R9vi5LGxNNi3pisp4dG7Ez00mAvCeki8VI5DUg6W1MR0GTnaejlVtMflziA2jqpdTGOK4bjLDsHKIadGC1SMVg==}+ '@oxlint/[email protected]':+ resolution: {integrity: sha512-SrpbrUL70nG9vh6zP4/oKHWgLuHquwsr7MW9XOn0olBVgh10Uqr8qscKhQoBGEn6olK/IUpn5GSKcdQ5AjUhGA==}+ engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]libc: [musl]- '@oxlint/[email protected]':- resolution: {integrity: sha512-TiV7xYBMhkc/r0X+c9cMwGKUWYJRlWnI61m8powqer6lMJ8VfDe1RkRF4ttO5wlPGkiBwBa3vYWAgxaXc9JAMQ==}+ '@oxlint/[email protected]':+ resolution: {integrity: sha512-qkrsEn6NmgFKr7U/QnezQMb+q/vzAy0Dd9Y95gQGQTyjzDLN+HRZMuM5u70iyH4nBLCfKBzhjMsYCehKay2jyg==}+ engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]+ os: [openharmony]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-LWR6ZlFZph+KPjXv8opgZsXRDCdrdQe8VL8Cg9zxCoBS73h6znzZpydVgmdnwj8mB9AuSM5jxEgDJDpQkjboeg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [win32]++ '@oxlint/[email protected]':+ resolution: {integrity: sha512-yt6HEh7IsHvtjRWtmeZRX134eaXKHq5Gnqlf1xBJdJl1JtdoRUEJw3nAxpZoUDS860cX/foKbztO441anVBtVQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [ia32]os: [win32]- '@oxlint/[email protected]':- resolution: {integrity: sha512-OWqqkXsLrpS1uQsxjNqiOkC9a/CszMLa3VwlRcpm/z3iPxEL/qEVjGfjZX6XZw8Q6YukFB77rgYqzotvtCvI1A==}+ '@oxlint/[email protected]':+ resolution: {integrity: sha512-b2eKFD2hX7tIwmo/cyH6TDq8vzWRZ2qNHrzoGntUTmq0h3zQh/uX3eTSHCwI8OB/ADQfJCRelLItK8BsxuucDA==}+ engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [win32]@@ -18870,10 +18948,18 @@ packages:engines: {node: ^20.19.0 || >=22.12.0}hasBin: true- resolution: {integrity: sha512-vvqpkRt7UA1F1DoOJGYO2+T52L6jV4RxS+9hFVCPQ0X+hcNVtbl/TxQuwjobBw8Yw2U8Rb9d8VLJxa8eRSqpQQ==}- engines: {node: '>=8.*'}+ resolution: {integrity: sha512-1rhdZIP/EvoI91ABIwNU5Q8+bWf8mjrS5UzIOZld4d4bXxJvtlUhlQvaoTogIGin/qdErMOrwaIJvCSIAKTLhA==}+ engines: {node: ^20.19.0 || >=22.12.0}hasBin: true+ peerDependencies:+ oxlint-tsgolint: '>=0.22.1'+ vite-plus: '*'+ peerDependenciesMeta:+ oxlint-tsgolint:+ optional: true+ vite-plus:+ optional: trueresolution: {integrity: sha512-ugZxsxmtTln604yeYd29EGrNhazN2lywetzpKhfmQjW/VJmhpDmWbiX+h0zL8V91R0UXkhb3KtPmyq9PZw3aYw==}@@ -28994,28 +29080,61 @@ snapshots:'@oxfmt/[email protected]':optional: true- '@oxlint/[email protected]':+ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':+ optional: true++ '@oxlint/[email protected]':optional: true- '@oxlint/[email protected]':+ '@oxlint/[email protected]':optional: true- '@oxlint/[email protected]':+ '@oxlint/[email protected]':optional: true- '@oxlint/[email protected]':+ '@oxlint/[email protected]':optional: true- '@oxlint/[email protected]':+ '@oxlint/[email protected]':optional: true- '@oxlint/[email protected]':+ '@oxlint/[email protected]':optional: true- '@oxlint/[email protected]':+ '@oxlint/[email protected]':optional: true- '@oxlint/[email protected]':+ '@oxlint/[email protected]':optional: true'@paralleldrive/[email protected]':@@ -41344,16 +41463,27 @@ snapshots:'@oxfmt/binding-win32-ia32-msvc': 0.35.0'@oxfmt/binding-win32-x64-msvc': 0.35.0optionalDependencies:- '@oxlint/darwin-arm64': 1.9.0- '@oxlint/darwin-x64': 1.9.0- '@oxlint/linux-arm64-gnu': 1.9.0- '@oxlint/linux-arm64-musl': 1.9.0- '@oxlint/linux-x64-gnu': 1.9.0- '@oxlint/linux-x64-musl': 1.9.0- '@oxlint/win32-arm64': 1.9.0- '@oxlint/win32-x64': 1.9.0+ '@oxlint/binding-android-arm-eabi': 1.72.0+ '@oxlint/binding-android-arm64': 1.72.0+ '@oxlint/binding-darwin-arm64': 1.72.0+ '@oxlint/binding-darwin-x64': 1.72.0+ '@oxlint/binding-freebsd-x64': 1.72.0+ '@oxlint/binding-linux-arm-gnueabihf': 1.72.0+ '@oxlint/binding-linux-arm-musleabihf': 1.72.0+ '@oxlint/binding-linux-arm64-gnu': 1.72.0+ '@oxlint/binding-linux-arm64-musl': 1.72.0+ '@oxlint/binding-linux-ppc64-gnu': 1.72.0+ '@oxlint/binding-linux-riscv64-gnu': 1.72.0+ '@oxlint/binding-linux-riscv64-musl': 1.72.0+ '@oxlint/binding-linux-s390x-gnu': 1.72.0+ '@oxlint/binding-linux-x64-gnu': 1.72.0+ '@oxlint/binding-linux-x64-musl': 1.72.0+ '@oxlint/binding-openharmony-arm64': 1.72.0+ '@oxlint/binding-win32-arm64-msvc': 1.72.0+ '@oxlint/binding-win32-ia32-msvc': 1.72.0+ '@oxlint/binding-win32-x64-msvc': 1.72.0diff --git a/products/customer_analytics/frontend/components/ZendeskTicketsFilters/OrderBy.tsx b/products/customer_analytics/frontend/components/ZendeskTicketsFilters/OrderBy.tsxindex 4a29f73b79c6..ffbc2a81ea6c 100644--- a/products/customer_analytics/frontend/components/ZendeskTicketsFilters/OrderBy.tsx+++ b/products/customer_analytics/frontend/components/ZendeskTicketsFilters/OrderBy.tsx@@ -6,7 +6,7 @@ import { capitalizeFirstLetter } from 'lib/utils/strings'import { zendeskTicketsFiltersLogic } from './zendeskTicketsFiltersLogic'-const label = (key: string) => {+const label = (key: string): string => {switch (key) {case 'updated_at':return 'Updated'diff --git a/products/customer_analytics/frontend/components/ZendeskTicketsFilters/Priority.tsx b/products/customer_analytics/frontend/components/ZendeskTicketsFilters/Priority.tsxindex 2c6981905ca3..ce01bfcdc190 100644--- a/products/customer_analytics/frontend/components/ZendeskTicketsFilters/Priority.tsx+++ b/products/customer_analytics/frontend/components/ZendeskTicketsFilters/Priority.tsx@@ -6,7 +6,7 @@ import { capitalizeFirstLetter } from 'lib/utils/strings'import { zendeskTicketsFiltersLogic } from './zendeskTicketsFiltersLogic'-const label = (key: string) => {+const label = (key: string): string => {switch (key) {case 'all':case null:diff --git a/products/customer_analytics/frontend/components/ZendeskTicketsFilters/Status.tsx b/products/customer_analytics/frontend/components/ZendeskTicketsFilters/Status.tsxindex 06f9c2ed53ca..9310bb6f0f8b 100644--- a/products/customer_analytics/frontend/components/ZendeskTicketsFilters/Status.tsx+++ b/products/customer_analytics/frontend/components/ZendeskTicketsFilters/Status.tsx@@ -6,7 +6,7 @@ import { capitalizeFirstLetter } from 'lib/utils/strings'import { zendeskTicketsFiltersLogic } from './zendeskTicketsFiltersLogic'-const label = (key: string) => {+const label = (key: string): string => {switch (key) {case 'all':case null:diff --git a/products/revenue_analytics/frontend/settings/EventConfigurationModal.tsx b/products/revenue_analytics/frontend/settings/EventConfigurationModal.tsxindex 5033bf484ef5..45ef19549f0a 100644--- a/products/revenue_analytics/frontend/settings/EventConfigurationModal.tsx+++ b/products/revenue_analytics/frontend/settings/EventConfigurationModal.tsx@@ -147,7 +147,7 @@ export function EventConfigurationModal({ event, onClose }: EventConfigurationMosetEventName(selectedEventName)}}}- value={''}+ value=""placeholder="Select or type an event name"selectingKeyOnly/>diff --git a/services/agent-proxy/package.json b/services/agent-proxy/package.jsonindex 737bec469d68..b4120dcfebed 100644--- a/services/agent-proxy/package.json+++ b/services/agent-proxy/package.json@@ -24,7 +24,7 @@"devDependencies": {"@types/node": "^22.17.2","oxfmt": "catalog:",- "oxlint": "^1.8.0",+ "oxlint": "^1.72.0","pino-pretty": "^9.1.0","tsx": "^4.20.5","typescript": "catalog:",diff --git a/services/mcp/package.json b/services/mcp/package.jsonindex 99089abbb080..4c10c1bf061b 100644--- a/services/mcp/package.json+++ b/services/mcp/package.json@@ -83,7 +83,7 @@"dotenv": "^16.4.7","msw": "^2.14.6","oxfmt": "^0.33.0",- "oxlint": "^1.8.0",+ "oxlint": "^1.72.0","react": "^18.2.0","react-dom": "^18.2.0","tailwindcss": "^4.1.10",