The config file must export an array of configuration objects, strings is not allowed.
It's mentioned in Migration Guide:
import js from "@eslint/js"; export default [ js.configs.recommended, ... ];