version: 2

updates:
  - package-ecosystem: npm
    directory: /
    schedule:
      interval: weekly
      day: monday
    open-pull-requests-limit: 10
    reviewers:
      - System-End
    labels:
      - dependencies
      - pnpm
    commit-message:
      prefix: "chore(deps)"
    groups:
      react:
        patterns:
          - react
          - react-dom
          - react-router-dom
          - "@types/react"
          - "@types/react-dom"
      lint-and-format:
        patterns:
          - eslint
          - eslint-*
          - "@typescript-eslint/*"
          - prettier
          - prettier-*
          - husky
          - lint-staged
          - "@commitlint/*"
      testing:
        patterns:
          - "@testing-library/*"
          - vitest
          - "@vitest/*"
          - jsdom
      build-tooling:
        patterns:
          - vite
          - "@vitejs/*"
          - "@rolldown/*"
          - vite-plugin-*
          - babel-plugin-react-compiler
          - typescript
          - rimraf
      css-tooling:
        patterns:
          - tailwindcss
          - postcss
          - autoprefixer
      cloudflare:
        patterns:
          - wrangler
          - "@cloudflare/*"
      ui-libs:
        patterns:
          - "@radix-ui/*"
          - class-variance-authority
          - clsx
          - tailwind-merge
          - lucide-react
      minor-patch-catchall:
        update-types:
          - minor
          - patch
        exclude-patterns:
          - react
          - react-dom
          - react-router-dom
          - "@types/react"
          - "@types/react-dom"
          - eslint
          - eslint-*
          - "@typescript-eslint/*"
          - prettier
          - prettier-*
          - husky
          - lint-staged
          - "@commitlint/*"
          - "@testing-library/*"
          - vitest
          - "@vitest/*"
          - jsdom
          - vite
          - "@vitejs/*"
          - "@rolldown/*"
          - vite-plugin-*
          - babel-plugin-react-compiler
          - typescript
          - rimraf
          - tailwindcss
          - postcss
          - autoprefixer
          - wrangler
          - "@cloudflare/*"
          - "@radix-ui/*"
          - class-variance-authority
          - clsx
          - tailwind-merge
          - lucide-react

  - package-ecosystem: github-actions
    directory: /
    schedule:
      interval: weekly
      day: monday
    open-pull-requests-limit: 5
    labels:
      - dependencies
      - github-actions
    commit-message:
      prefix: "ci(deps)"
    groups:
      actions:
        patterns:
          - "*"
