Skip to content

eslint.config.mjs's globalIgnores claims to override eslint-config-next's defaults but just restates them, and never ignores /coverage #252

Closed

Description

@chonilius

eslint.config.mjs does:

const eslintConfig = defineConfig([
  ...nextVitals,
  ...nextTs,
  // Override default ignores of eslint-config-next.
  globalIgnores([
    // Default ignores of eslint-config-next:
    ".next/**",
    "out/**",
    "build/**",
    "next-env.d.ts",
  ]),
]);

The comment says this block exists to "override default ignores of eslint-config-next,"
but the list passed to globalIgnores is verbatim identical to the defaults it claims to
override — this block currently changes nothing relative to just using
eslint-config-next's own defaults unmodified. Whatever the original intent was (adding
to, or genuinely replacing, the default ignore list), the code as written doesn't do it.

Separately, and more concretely: .gitignore explicitly acknowledges a /coverage
directory (# testing / /coverage) as build output this repo expects to exist locally
once jest --coverage is run. .next/**, out/**, and build/** are ignored here, but
coverage/** is not. Running npm run lint locally after generating a coverage report
would attempt to lint whatever JS/HTML Istanbul/Jest wrote into coverage/ (typically a
static HTML report bundle), which is not source code and shouldn't be linted.

Suggested fix: either remove the redundant globalIgnores block if it's genuinely meant
to be a no-op, or — more usefully — extend it to actually add coverage/** (and any
other locally-generated directories) to the ignore list, so the comment's stated intent
("override ... ignores") is true of the code.

Activity

  1. added
    bug
    good first issue
    help wanted
    architecture
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 25, 2026
  3. ZuLu0890 commented on Aug 25, 2026

    @ZuLu0890

    @ZuLu0890 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    I would love to resolve this issue and give it a higher quality PR

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @ZuLu0890 to this issue.

  4. mimi-esc commented on Aug 25, 2026

    @mimi-esc

    @mimi-esc has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello,

    I would like to work on this issue.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @mimi-esc to this issue.

  5. alansamdev commented on Aug 25, 2026

    @alansamdev
    Contributor

    @alansamdev has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello, I’d like to contribute to this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @alansamdev to this issue.

  6. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @alansamdev! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @alansamdev: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  7. drips-wave commented on Aug 25, 2026

    @drips-wave

    This issue has been completed by @alansamdev as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @alansamdev: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  8. removed
    Stellar Wave
    on Oct 15, 2026
  9. added
    Stellar Wave
    on Oct 15, 2026
  10. removed
    Stellar Wave
    on Oct 15, 2026
  11. added
    Stellar Wave
    on Oct 15, 2026
  12. removed
    Stellar Wave
    on Oct 15, 2026
  13. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar Wavearchitecturebuggood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions