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.

1.5 KB
Raw Blame
{
    "$schema": "../../node_modules/oxlint/configuration_schema.json",
    "rules": {
        "no-restricted-imports": [
            "error",
            {
                "patterns": [
                    {
                        "group": [
                            "**/nodejs",
                            "**/nodejs/**",
                            "**/frontend",
                            "**/frontend/**",
                            "**/common",
                            "**/common/**",
                            "**/ee",
                            "**/ee/**",
                            "**/products",
                            "**/products/**",
                            "**/packages",
                            "**/packages/**",
                            "**/services/**",
                            "**/plugin-server/**",
                            "../../*",
                            "../../**",
                            "@posthog/*",
                            "@posthog/**"
                        ],
                        "message": "credentials-service must not import from the rest of the monorepo \u2014 copy the small piece you need instead"
                    }
                ]
            }
        ],
        "node/no-process-env": "error"
    },
    "plugins": ["typescript", "unicorn", "oxc", "node"],
    "overrides": [
        {
            "files": ["src/lib/config.ts", "src/lib/logging.ts", "tests/**", "scripts/**"],
            "rules": {
                "node/no-process-env": "off"
            }
        }
    ]
}