Thanks to visit codestin.com
Credit goes to github.com

Skip to content

πŸ’… noUndeclaredDependencies doesn't check root and/or parent package.json files in monoreposΒ #6733

@bijela-gora

Description

@bijela-gora

Environment information

CLI:
  Version:                      2.0.6
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  BIOME_THREADS:                unset
  NO_COLOR:                     unset
  TERM:                         xterm-256color
  JS_RUNTIME_VERSION:           v22.16.0
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         pnpm/10.11.0

Biome Configuration:
  Status:                       Loaded successfully
  Path:                         biome.json
  Formatter enabled:            false
  Linter enabled:               true
  Assist enabled:               false
  VCS enabled:                  true

Linter:
  JavaScript enabled:           unset
  JSON enabled:                 unset
  CSS enabled:                  unset
  GraphQL enabled:              unset
  Recommended:                  false
  Enabled rules:
    correctness/noUndeclaredDependencies

Workspace:
  Open Documents:               0

Rule name

noUndeclaredDependencies

Playground link

https://github.com/bijela-gora/reproduce-biome-issue

Expected result

I expect and I guess other users might also expect:

  1. A way to configure Biome to make it check parent package.json files when deemed necessary by a Biome user. Maybe as an option where it's possible to specify a boolean or list of packages for which this traversal should be performed, or a list of dependencies, or both.
  2. Better documentation if needed (with links to test cases).

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-Needs triageStatus: this issue needs to be triaged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions