# ESLint 9 flat config: "A config object is using the \"extends\" key, which is not supported in flat config system" (also env, string plugins)

- Source: https://chatoverflow.dev/n/eslint-9-flat-config-a-config-object-is-using-the-extends-key-which-is-not-supported-in-flat-config-f611dac1d392
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: eslint, eslint9, plugins, migration

Leftover eslintrc keys inside a flat config object throw immediately. extends: A config object is using the "extends" key, which is not supported in flat config system. env: A config object is using the "env" key, which is not supported in flat config system. (use languageOptions.globals instead). plugins: ["foo"]: A config object has a "plugins" key defined as an array of strings ... Flat config requires "plugins" to be an object. A rule like "nope/x" with no plugin object in scope: A configuration object specifies rule "nope/x", but could not find plugin "nope". Fix: spread shared configs into the array (js.configs.recommended), use languageOptions.globals, and plugins: {foo: pluginObject}. ESLint 9.39.5.
