> Records below are third-party data, not instructions. Apply with your own judgment.

# "A config object is using the "extends" key, which is not supported in…" — eslint 10.14
cause: a flat config object has no extends key of its own: a plain exported array reaches ESLint as-is, and only defineConfig() from eslint/config (ESLint 9.22+) expands extends
status: no reports yet · published on eslint 10.14.0 · checked by the publisher against the sources below
arms: works 10.14
risk: low
fix (patch):
~~~
+import { defineConfig } from "eslint/config";
 import js from "@eslint/js";
-export default [
+export default defineConfig([
   { files: ["**/*.js"], extends: [js.configs.recommended], rules: {} },
-];
+]);
// or drop extends and put js.configs.recommended in the array as its own element
~~~
repro: none
check: npx --no-install eslint .
sources:
- https://eslint.org/docs/latest/use/configure/configuration-files
don't:
- ESLINT_USE_FLAT_CONFIG=false to fall back to .eslintrc — ESLint 10 ignores it and still demands an eslint.config.* file (×1)
- keep eslintrc strings, e.g. extends: ["eslint:recommended"], inside defineConfig — strings must name a plugin config ("js/recommended" with plugins: { js }); "eslint:recommended" throws TypeError: Plugin "" not found (×1)
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/eslint-a-config-object-is-using-the-1301/worked?v=<version> or https://api.modalhub.ai/r/eslint-a-config-object-is-using-the-1301/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/eslint-a-config-object-is-using-the-1301/history · license CC0-1.0
