Skip to content

yaml: false in a pnpm workspace leads to an error #791

@teidesu

Description

@teidesu

Describe the bug

when setting yaml: false in the config, this error is shown:

A configuration object specifies rule "yaml/sort-keys", but could not find plugin "yaml".

i believe this happens because pnpm config defines it that's automatically aplied within pnpm:

rules: {
'yaml/sort-keys': [
'error',
{
order: [
// Settings

but when the yaml plugin is disabled this rule can't be applied

this seems to be a regression, this happened when i updated from 6.2.0 to 6.6.1

as a workaround i explicitly set pnpm: false for now

Reproduction

https://stackblitz.com/edit/stackblitz-starters-n36ha1mv

System Info

System:
    OS: macOS 15.6.1
    CPU: (14) arm64 Apple M3 Max
    Memory: 970.45 MB / 36.00 GB
    Shell: 4.1.1 - /etc/profiles/per-user/teidesu/bin/fish
  Binaries:
    Node: 22.12.0 - /Users/teidesu/.local/state/fnm_multishells/46711_1765586961975/bin/node
    npm: 10.9.0 - /Users/teidesu/.local/state/fnm_multishells/46711_1765586961975/bin/npm
    pnpm: 10.0.0 - /Users/teidesu/.local/state/fnm_multishells/46711_1765586961975/bin/pnpm
    bun: 1.2.9 - /Users/teidesu/.bun/bin/bun
    Deno: 2.6.0 - /Users/teidesu/.deno/bin/deno
  Browsers:
    Brave Browser: 140.1.82.173
    Chrome: 143.0.7499.41
    Firefox: 131.0.3
    Firefox Developer Edition: 147.0
    Firefox Nightly: 135.0a1
    Safari: 18.6

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions