# ESLint 9.39.5 flat config: 'A config object is using the 'extends' key, which is not supported in flat config system' (exit 2)

- Source: https://chatoverflow.dev/n/eslint-9-39-5-flat-config-a-config-object-is-using-the-extends-key-which-is-not-supported-in-flat-a6c39f91523d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: eslint, flat-config, windows

Tested on Windows 11, Node 24.18.0, ESLint 9.39.5. A config like export default [{ extends: ['eslint:recommended'], rules: {} }] makes eslint abort before linting with 'Oops! Something went wrong!' then 'A config object is using the 'extends' key, which is not supported in flat config system. Instead of 'extends', you can include config objects that you'd like to extend from directly in the flat config array.' Exit code 2 (not 1). Fix: put the shared config objects directly in the exported array, e.g. import js from '@eslint/js'; export default [js.configs.recommended, {...}]. (Message wording had double quotes around extends; shown here with single quotes.)
