Skip to content

: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.

5.6 KB
Raw Blame
{
    "$schema": "./node_modules/oxfmt/configuration_schema.json",
    "trailingComma": "es5",
    "tabWidth": 4,
    "semi": false,
    "singleQuote": true,
    "printWidth": 120,
    "proseWrap": "preserve",
    "sortImports": {
        "newlinesBetween": true,
        "internalPattern": ["~/", "@/"],
        "groups": [
            ["custom-styles", "side_effect_style", "style"],
            "mocks",
            "spies",
            "side_effect",
            ["builtin", "external"],
            "posthog-packages",
            "lib-and-scenes",
            "internal",
            "public",
            "products",
            "storybook",
            ["sibling", "parent", "index"]
        ],
        "customGroups": [
            {
                "groupName": "custom-styles",
                "elementNamePattern": ["~/styles", "*.scss"]
            },
            {
                "groupName": "mocks",
                "elementNamePattern": ["*.mock", "*.mocks", "**/*.mock", "**/*.mocks"]
            },
            {
                "groupName": "spies",
                "elementNamePattern": ["*.spy", "**/*.spy"]
            },
            {
                "groupName": "posthog-packages",
                "elementNamePattern": ["@posthog/*", "@posthog/**"]
            },
            {
                "groupName": "lib-and-scenes",
                "elementNamePattern": ["lib/*", "lib/**", "scenes/*", "scenes/**"]
            },
            {
                "groupName": "public",
                "elementNamePattern": ["public/*", "public/**"]
            },
            {
                "groupName": "products",
                "elementNamePattern": ["products/*", "products/**"]
            },
            {
                "groupName": "storybook",
                "elementNamePattern": ["storybook/*", "storybook/**"]
            }
        ]
    },
    "overrides": [
        {
            "files": ["*.md", "*.mdx"],
            "options": {
                "tabWidth": 2
            }
        },
        {
            "files": [
                "products/workflows/frontend/Workflows/hogflows/panel/HogFlowEditorPanelBuild.tsx",
                "frontend/src/lib/components/CyclotronJob/integrations/IntegrationChoice.tsx",
                "services/mcp/src/resources/ui-apps.ts",
                "frontend/src/styles/index.tsx"
            ],
            "options": {
                "experimentalSortImports": {
                    "partitionByComment": true
                }
            }
        }
    ],
    "ignorePatterns": [
        "products/desktop/**/*.ts",
        "products/desktop/**/*.tsx",
        "products/desktop/**/*.js",
        "products/desktop/**/*.jsx",
        "products/desktop/**/*.mjs",
        "products/desktop/**/*.cjs",
        "products/desktop/**/*.mts",
        "products/desktop/**/*.json",
        "products/desktop/**/*.jsonc",
        "products/desktop/**/*.css",
        "products/desktop/**/*.scss",
        "products/desktop/**/*.md",
        "products/desktop/**/*.mdx",
        "products/desktop/pnpm-lock.yaml",
        "packages/agent/**/*.ts",
        "packages/agent/**/*.tsx",
        "packages/agent/**/*.js",
        "packages/agent/**/*.jsx",
        "packages/agent/**/*.mjs",
        "packages/agent/**/*.cjs",
        "packages/agent/**/*.mts",
        "packages/agent/**/*.json",
        "packages/agent/**/*.jsonc",
        "packages/agent/**/*.css",
        "packages/agent/**/*.scss",
        "packages/agent/**/*.md",
        "packages/agent/**/*.mdx",
        "packages/agent/pnpm-lock.yaml",
        "products/desktop/apps/code/snapshots.yml",
        "products/mobile/**/*.ts",
        "products/mobile/**/*.tsx",
        "products/mobile/**/*.js",
        "products/mobile/**/*.jsx",
        "products/mobile/**/*.mjs",
        "products/mobile/**/*.cjs",
        "products/mobile/**/*.mts",
        "products/mobile/**/*.json",
        "products/mobile/**/*.jsonc",
        "products/mobile/**/*.css",
        "frontend/snapshots.yml",
        "venv",
        "env",
        ".venv",
        "__pycache__/",
        "staticfiles",
        ".env",
        "*.code-workspace",
        "*.toml",
        ".mypy_cache",
        ".cache/",
        "*Type.ts",
        ".idea",
        ".yalc",
        ".python-version",
        "storybook-static",
        "common/storybook/dist/",
        "dist/",
        "node_modules/",
        "pnpm-lock.yaml",
        "posthog/templates/**/*",
        "common/hogvm/typescript/src/stl/bytecode.ts",
        "common/hogvm/__tests__/__snapshots__/*",
        "products/**/tests/__snapshots__/**/*",
        "common/hogql_parser/build_wasm/",
        "common/hogql_parser/build/",
        "common/hogql_parser/dist/",
        "nodejs/",
        "rust/",
        "livestream/",
        "cli/target/",
        "cli/tests/_cases/**/*",
        "frontend/src/products.tsx",
        "frontend/src/products.json",
        "frontend/src/layout.html",
        "**/fixtures/**",
        "services/mcp/**/generated.ts",
        "services/mcp/src/**/*.md",
        "services/mcp/worker-configuration.d.ts",
        "products/cdp/backend/filter_globals.json",
        "posthog/emoji_search/catalog.json",
        "products/review_hog/backend/reviewer/prompts/**/schema.json",
        "**/chart/*/templates/**",
        "products/metrics/agent/tests/**/golden/**",
        "hog/test/parity/bundles/**",
        "hog/test/parity/native/bin/**",
        "hog/test/parity/real/**",
        "hog/test/parity/golden/**",
        "frontend/dist/",
        "frontend/**/*LogicType.ts",
        "bin/validate-setup-tasks.mjs",
        "frontend/bin/docs/build-survey-sdk-docs.ts",
        "frontend/src/scenes/notebooks/Nodes/NodeWrapper.tsx"
    ]
}