Skip to content

eslint suppressions file is ignored by next build #82324

@georgegarrington

Description

@georgegarrington

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/peaceful-star-h8sts7?workspaceId=ws_Veu8GohFbxb5ytXVyufE71

To Reproduce

  1. Open the Code Sandbox link
  2. Run "yarn eslint reproduction-app". Observe zero exit code
  3. Run "yarn next build". Observe failure, showing eslint errors that are in the "eslint-suppressions.json" file

Current vs. Expected behavior

Current behaviour: "next build" seems to ignore the "eslint-suppressions.json" file used by eslint

Expected behaviour: "next build" should account for eslint errors in the "eslint-suppressions.json" file in the same way eslint does

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 15.4.2-canary.29 // Latest available version is detected (15.4.2-canary.29).
  eslint-config-next: 15.4.5
  react: 19.1.1
  react-dom: 19.1.1
  typescript: 5.8.3
Next.js Config:
  output: N/A
Done in 1.88s.

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions