fix(eslint-plugin): fix TypeScript 6.0 type errors in no-mixed-plugin-imports
TypeScript 6.0 no longer applies bivariant checking to method-shorthand functions that don't reference `this`. This causes the `fix` callbacks in suggestion descriptors to fail type checking when they return `void` instead of a valid `Fix | null` value. - Return `null` from non-fixable suggestion `fix` handlers - Add explicit `SuggestionReportDescriptor[]` type annotation to `suggest` - Remove redundant `@param` JSDoc annotations now covered by the array type Signed-off-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/eslint-plugin': patch
|
||||
---
|
||||
|
||||
Fixed `no-mixed-plugin-imports` rule to return `null` from non-fixable suggestion handlers and added an explicit `SuggestionReportDescriptor[]` type annotation, matching the stricter type checking in TypeScript 6.0.
|
||||
Reference in New Issue
Block a user