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)
Description
eslint-plugin-office-addins@4.0.7crashes when used with ESLint 10 due to its bundled@typescript-eslint/utils@8.8.1dependency, which only supports ESLint 8/9.Error
Root Cause
The plugin pins
typescript-eslint: ~8.8.0in its dependencies, which resolves@typescript-eslint/utils@8.8.1. That version declarespeerDependencies: { eslint: "^8.57.0 || ^9.0.0" }— no ESLint 10 support.The top-level
@typescript-eslint/utils@8.58.1already supports ESLint 10 (^8.57.0 || ^9.0.0 || ^10.0.0).Suggested Fix
Update
typescript-eslintdependency from~8.8.0to^8.58.0(or later) so that@typescript-eslint/utilsresolves to a version that supports ESLint 10.Environment