Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bun run --filter '*' yields a different result than bun run in the package directory #12183

Open
dszymon opened this issue Jun 26, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@dszymon
Copy link

dszymon commented Jun 26, 2024

What version of Bun is running?

1.1.17+bb66bba1b

What platform is your computer?

Darwin 23.5.0 arm64 arm

What steps can reproduce the bug?

  1. Create a monorepo with Bun
  2. Add eslint@8, @getresponse/eslint-config@latest
  3. Create a file .eslintrc.json with the following content
{
  "extends": "@getresponse/eslint-config",
}
  1. Add lint script to all packages in the workspace
  "scripts": {
    "lint": "eslint --max-warnings 0 .",
  },
  1. Run bun run --filter '*' lint

What is the expected behavior?

bun --filter '*' lint gives the same result as cd package && bun lint

What do you see instead?

$ bun run --filter '*' lint
@gr/embedded-playground lint $ eslint --max-warnings 0 .
│ [5 lines elided]
│    9:21  warning  'eq' is defined but never used        no-unused-vars
│   10:15  warning  'client' is defined but never used    no-unused-vars
@gr/embedded-playground lint $ eslint --max-warnings 0 .
│ [6 lines elided]
│   10:15  warning  'client' is defined but never used    no-unused-vars
│   10:33  warning  'server' is defined but never used    no-unused-vars
│ 
@gr/embedded-playground lint $ eslint --max-warnings 0 .
│ [6 lines elided]
│   10:15  warning  'client' is defined but never used    no-unused-vars
│   10:33  warning  'server' is defined but never used    no-unused-vars
│ 
@gr/embedded-playground lint $ eslint --max-warnings 0 .
│ [6 lines elided]
│   10:15  warning  'client' is defined but never used    no-unused-vars
│   10:33  warning  'server' is defined but never used    no-unused-vars
│ 
│ /x/embedded/packages/playground/src/projects/args.ts
│   8:9   warning  'a' is defined but never used  no-unused-vars
│   8:20  warning  'b' is defined but never used  no-unused-vars
│ 
│ ✖ 8 problems (0 errors, 8 warnings)
│ 
│ ESLint found too many warnings (maximum: 0).
└─ Exited with code 1
@gr/embedded-playground lint $ eslint --max-warnings 0 .
│ [6 lines elided]
│   10:15  warning  'client' is defined but never used    no-unused-vars
│   10:33  warning  'server' is defined but never used    no-unused-vars
│ 
│ /x/embedded/packages/playground/src/projects/args.ts
│   8:9   warning  'a' is defined but never used  no-unused-vars
│   8:20  warning  'b' is defined but never used  no-unused-vars
│ 
│ ✖ 8 problems (0 errors, 8 warnings)
│ 
│ ESLint found too many warnings (maximum: 0).
└─ Exited with code 1
@gr/embedded-transport lint $ eslint --max-warnings 0 .
│ [65 lines elided]
@gr/embedded-playground lint $ eslint --max-warnings 0 .
│ [6 lines elided]
│   10:15  warning  'client' is defined but never used    no-unused-vars
│   10:33  warning  'server' is defined but never used    no-unused-vars
│ 
│ /x/embedded/packages/playground/src/projects/args.ts
│   8:9   warning  'a' is defined but never used  no-unused-vars
│   8:20  warning  'b' is defined but never used  no-unused-vars
│ 
│ ✖ 8 problems (0 errors, 8 warnings)
│ 
│ ESLint found too many warnings (maximum: 0).
└─ Exited with code 1
@gr/embedded-transport lint $ eslint --max-warnings 0 .
│ [65 lines elided]
@gr/embedded-playground lint $ eslint --max-warnings 0 .
│ [6 lines elided]
│   10:15  warning  'client' is defined but never used    no-unused-vars
│   10:33  warning  'server' is defined but never used    no-unused-vars
│ 
│ /x/embedded/packages/playground/src/projects/args.ts
│   8:9   warning  'a' is defined but never used  no-unused-vars
│   8:20  warning  'b' is defined but never used  no-unused-vars
│ 
│ ✖ 8 problems (0 errors, 8 warnings)
│ 
│ ESLint found too many warnings (maximum: 0).
└─ Exited with code 1
@gr/embedded-transport lint $ eslint --max-warnings 0 .
│ [65 lines elided]
│   2:22  warning  'type' is defined but never used      no-unused-vars
│   2:39  warning  'listener' is defined but never used  no-unused-vars
│   2:50  warning  'event' is defined but never used     no-unused-vars
│   3:25  warning  'type' is defined but never used      no-unused-vars
│   3:42  warning  'listener' is defined but never used  no-unused-vars
│   3:53  warning  'event' is defined but never used     no-unused-vars
│ 
@gr/embedded-playground lint $ eslint --max-warnings 0 .
│ [6 lines elided]
│   10:15  warning  'client' is defined but never used    no-unused-vars
│   10:33  warning  'server' is defined but never used    no-unused-vars
│ 
│ /x/embedded/packages/playground/src/projects/args.ts
│   8:9   warning  'a' is defined but never used  no-unused-vars
│   8:20  warning  'b' is defined but never used  no-unused-vars
│ 
│ ✖ 8 problems (0 errors, 8 warnings)
│ 
│ ESLint found too many warnings (maximum: 0).
└─ Exited with code 1
@gr/embedded-transport lint $ eslint --max-warnings 0 .
│ [65 lines elided]
│   2:22  warning  'type' is defined but never used      no-unused-vars
│   2:39  warning  'listener' is defined but never used  no-unused-vars
│   2:50  warning  'event' is defined but never used     no-unused-vars
│   3:25  warning  'type' is defined but never used      no-unused-vars
│   3:42  warning  'listener' is defined but never used  no-unused-vars
│   3:53  warning  'event' is defined but never used     no-unused-vars
│ 
│ ✖ 53 problems (3 errors, 50 warnings)
│   0 errors and 2 warnings potentially fixable with the `--fix` option.
└─ Exited with code 1
@gr/context lint $ eslint --max-warnings 0 .
│ 
│ /x/embedded/packages/context/src/types.ts
│   2:12  warning  'key' is defined but never used    no-unused-vars
│   2:25  warning  'value' is defined but never used  no-unused-vars
│   3:12  warning  'key' is defined but never used    no-unused-vars
│   4:12  warning  'cb' is defined but never used     no-unused-vars
│ 
│ ✖ 4 problems (0 errors, 4 warnings)
│ 
│ ESLint found too many warnings (maximum: 0).
└─ Exited with code 1
@gr/context lint $ eslint --max-warnings 0 .
│ 
│ Oops! Something went wrong! :(
│ 
│ ESLint: 8.57.0
│ 
│ No files matching the pattern "." were found.
│ Please check for typing mistakes in the pattern.
└─ Exited with code 2

Additional information

No response

@dszymon dszymon added bug Something isn't working needs triage labels Jun 26, 2024
@dszymon dszymon changed the title bun run --filter '*' yields a different result than bun run in the package directory bun run --filter '*' yields a different result than bun run in the package directory Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant