Skip to content

eslint-plugin-office-addins: add support for ESLint 10 #986

Description

@sakal-s

Description

eslint-plugin-office-addins@4.0.7 crashes when used with ESLint 10 due to its bundled @typescript-eslint/utils@8.8.1 dependency, which only supports ESLint 8/9.

Error

TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (eslint-plugin-office-addins/node_modules/@typescript-eslint/utils/dist/ts-eslint/FlatESLint.js:12:49)

Root Cause

The plugin pins typescript-eslint: ~8.8.0 in its dependencies, which resolves @typescript-eslint/utils@8.8.1. That version declares peerDependencies: { eslint: "^8.57.0 || ^9.0.0" } — no ESLint 10 support.

The top-level @typescript-eslint/utils@8.58.1 already supports ESLint 10 (^8.57.0 || ^9.0.0 || ^10.0.0).

Suggested Fix

Update typescript-eslint dependency from ~8.8.0 to ^8.58.0 (or later) so that @typescript-eslint/utils resolves to a version that supports ESLint 10.

Environment

  • eslint: 10.2.0
  • eslint-plugin-office-addins: 4.0.7
  • typescript-eslint: 8.58.1
  • Node: $(node -v)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions