Skip to content

[Bug]: flat configs are possibly undefined #3874

Closed
@filipw01

Description

@filipw01

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

Image
import tseslint from 'typescript-eslint'
import reactPlugin from 'eslint-plugin-react'

export default tseslint.config(
  reactPlugin.configs.flat.recommended
)
reactPlugin.configs.flat' is possibly 'undefined'

Is there really a chanse for this object to be undefined or is it incorrect type?

Expected Behavior

No type error

eslint-plugin-react version

v7.37.3

eslint version

v9.17.0

node version

v20.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions