{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:base"],
  "ignorePaths": ["**/__fixtures__/**", "**/fixtures/**"],
  "enabledManagers": ["npm"],
  "baseBranches": ["main", "7.16", "7.15"],
  "prConcurrentLimit": 0,
  "prHourlyLimit": 0,
  "separateMajorMinor": false,
  "rangeStrategy": "bump",
  "semanticCommits": "disabled",
  "vulnerabilityAlerts": {
    "enabled": false
  },
  "lockFileMaintenance": {
    "enabled": false
  },
  "packageRules": [
    {
      "matchPackagePatterns": [".*"],
      "enabled": false,
      "prCreation": "not-pending",
      "stabilityDays": 7
    },
    {
      "groupName": "@elastic/charts",
      "matchPackageNames": ["@elastic/charts"],
      "reviewers": ["team:datavis", "markov00", "nickofthyme"],
      "matchBaseBranches": ["main"],
      "labels": ["release_note:skip", "backport:skip", "Team:DataVis"],
      "draftPR": true,
      "enabled": true,
      "assignAutomerge": true,
      "prCreation": "immediate"
    },
    {
      "groupName": "@elastic/elasticsearch",
      "matchPackageNames": ["@elastic/elasticsearch"],
      "reviewers": ["team:kibana-operations", "team:kibana-core"],
      "matchBaseBranches": ["main"],
      "labels": ["release_note:skip", "backport:skip", "Team:Operations", "Team:Core"],
      "enabled": true
    },
    {
      "groupName": "@elastic/elasticsearch",
      "matchPackageNames": ["@elastic/elasticsearch"],
      "reviewers": ["team:kibana-operations", "team:kibana-core"],
      "matchBaseBranches": ["8.1"],
      "labels": ["release_note:skip", "Team:Operations", "Team:Core", "backport:skip"],
      "enabled": true
    },
    {
      "groupName": "@elastic/elasticsearch",
      "matchPackageNames": ["@elastic/elasticsearch"],
      "reviewers": ["team:kibana-operations", "team:kibana-core"],
      "matchBaseBranches": ["7.17"],
      "labels": ["release_note:skip", "Team:Operations", "Team:Core", "backport:skip"],
      "enabled": true
    },
    {
      "groupName": "APM",
      "matchPackageNames": ["elastic-apm-node", "@elastic/apm-rum", "@elastic/apm-rum-react"],
      "reviewers": ["team:kibana-core"],
      "matchBaseBranches": ["main"],
      "labels": ["release_note:skip", "Team:Core", "backport:skip"],
      "enabled": true,
      "prCreation": "immediate"
    },
    {
      "groupName": "babel",
      "matchPackageNames": ["@types/babel__core"],
      "matchPackagePatterns": ["^@babel", "^babel-plugin"],
      "reviewers": ["team:kibana-operations"],
      "matchBaseBranches": ["main"],
      "labels": ["Team:Operations", "release_note:skip"],
      "enabled": true
    },
    {
      "groupName": "typescript",
      "matchPackageNames": ["typescript", "prettier", "@types/jsdom"],
      "matchPackagePatterns": ["^@typescript-eslint"],
      "reviewers": ["team:kibana-operations"],
      "matchBaseBranches": ["main"],
      "labels": ["Team:Operations", "release_note:skip"],
      "enabled": true
    },
    {
      "groupName": "polyfills",
      "matchPackageNames": ["core-js"],
      "matchPackagePatterns": ["polyfill"],
      "excludePackageNames": ["@loaders.gl/polyfills"],
      "reviewers": ["team:kibana-operations"],
      "matchBaseBranches": ["main"],
      "labels": ["Team:Operations", "release_note:skip"],
      "enabled": true
    },
    {
      "groupName": "vega related modules",
      "matchPackageNames": ["vega", "vega-lite", "vega-schema-url-parser", "vega-tooltip"],
      "reviewers": ["team:kibana-vis-editors"],
      "matchBaseBranches": ["main"],
      "labels": ["Feature:Vega", "Team:VisEditors"],
      "enabled": true
    },
    {
      "groupName": "cypress",
      "matchPackageNames": ["eslint-plugin-cypress"],
      "matchPackagePatterns": ["^cypress"],
      "reviewers": ["Team:apm", "Team: SecuritySolution"],
      "matchBaseBranches": ["main"],
      "labels": ["buildkite-ci", "ci:all-cypress-suites"],
      "enabled": true
    },
    {
      "groupName": "platform security modules",
      "matchPackageNames": [
        "node-forge",
        "formik",
        "@types/node-forge",
        "require-in-the-middle",
        "tough-cookie",
        "@types/tough-cookie",
        "xml-crypto",
        "@types/xml-crypto"
      ],
      "reviewers": ["team:kibana-security"],
      "matchBaseBranches": ["main"],
      "labels": ["Team:Security", "release_note:skip", "backport:all-open"],
      "enabled": true
    },
    {
      "groupName": "ftr",
      "packageNames": [
        "@types/chromedriver",
        "@types/selenium-webdriver",
        "chromedriver",
        "geckodriver",
        "ms-chromium-edge-driver",
        "selenium-webdriver"
      ],
      "reviewers": ["team:kibana-operations"],
      "matchBaseBranches": ["main"],
      "labels": ["Team:Operations", "release_note:skip"],
      "enabled": true
    },
    {
      "groupName": "@testing-library",
      "packageNames": [
        "@testing-library/dom",
        "@testing-library/jest-dom",
        "@testing-library/react",
        "@testing-library/react-hooks",
        "@testing-library/user-event",
        "@types/testing-library__jest-dom"
      ],
      "reviewers": ["team:kibana-operations"],
      "matchBaseBranches": ["main"],
      "labels": ["Team:Operations", "release_note:skip"],
      "enabled": true
    },
    {
      "groupName": "@storybook",
      "reviewers": ["team:kibana-operations"],
      "matchBaseBranches": ["main"],
      "matchPackagePatterns": ["^@storybook"],
      "labels": ["Team:Operations", "release_note:skip"],
      "enabled": true
    },
    {
      "groupName": "react-query",
      "packageNames": ["@tanstack/react-query", "@tanstack/react-query-devtools"],
      "reviewers": [
        "team:response-ops",
        "team:kibana-cloud-security-posture",
        "team:security-asset-management",
        "team:fleet",
        "team:awp-platform",
        "team:security-onboarding-and-lifecycle-mgt"
      ],
      "matchBaseBranches": ["main"],
      "labels": ["release_note:skip", "backport:skip", "ci:all-cypress-suites"],
      "enabled": true
    },
    {
      "groupName": "react-hook-form",
      "packageNames": ["react-hook-form"],
      "reviewers": [
        "team:security-asset-management",
        "team:uptime"
      ],
      "matchBaseBranches": ["main"],
      "labels": ["release_note:skip", "backport:skip", "ci:all-cypress-suites"],
      "enabled": true
    },
    {
      "groupName": "redux",
      "packageNames": ["redux", "react-redux"],
      "reviewers":[
        "team:enterprise-search-frontend",
        "team:kibana-presentation",
        "team:kibana-data-discovery",
        "team:platform-deployment-management",
        "team:infra-monitoring-ui",
        "team:kibana-gis",
        "team:security-solution"
      ],
      "matchBaseBranches": ["main"],
      "labels": ["release_note:skip", "backport:skip", "ci:all-cypress-suites"],
      "enabled": true
    },
    {
      "groupName": "Profiling",
      "matchPackageNames": ["peggy", "@types/dagre"],
      "reviewers": ["team:profiling-ui"],
      "matchBaseBranches": ["main"],
      "labels": ["release_note:skip", "backport:skip"],
      "enabled": true,
      "prCreation": "immediate"
    },
    {
      "groupName": "TTY Output",
      "matchPackageNames": ["xterm", "byte-size", "@types/byte-size"],
      "reviewers": ["team:awp-viz"],
      "matchBaseBranches": ["main"],
      "labels": ["Team: AWP: Visualization", "release_note:skip", "backport:skip"],
      "enabled": true,
      "prCreation": "immediate"
    }
  ]
}