`eslint-plugin-sonarjs`: Exported typings are not compatible with `defineConfig`

// @ts-check

import { defineConfig } from 'eslint/config'
import sonarjs from 'eslint-plugin-sonarjs'

export default defineConfig([
 // error TS18048: 'sonarjs.configs' is possibly 'undefined'.
  sonarjs.configs.recommended
])

Hello @JounQin, thanks for reporting this issue, I unfortunately cannot reproduce with a fresh project (typescript 6.0.3, eslint-plugin-sonarjs 4.0.3, eslint 10.4.0 and the default tsconfig).

Could you please share your package.json and tsconfig.json files to help us identify the issue?

Thanks!