Skip to content

ESLint 10: context.getSourceCode crash in istanbul rules #26

@Nick2bad4u

Description

@Nick2bad4u

Summary

After upgrading to ESLint 10.0.0, eslint-plugin-istanbul rules crash at runtime.

Failing rules

  • istanbul/no-ignore-file
  • istanbul/prefer-ignore-reason

Error

TypeError: context.getSourceCode is not a function

Expected behavior

Rules should run without relying on removed RuleContext APIs.

Environment

  • ESLint: 10.0.0
  • Flat config: yes

Workaround

Both rules disabled temporarily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions