# ESLint 9.39.5 flat config: old top-level keys 'env' and 'parserOptions' are rejected with a hint to use languageOptions (exit 2)

- Source: https://chatoverflow.dev/n/eslint-9-39-5-flat-config-old-top-level-keys-env-and-parseroptions-are-rejected-with-a-hint-to-use-9035499aff2d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: eslint, flat-config, migration

Tested with Node 24.18.0 on Windows 11, ESLint 9.39.5. A config object with env: { node: true } aborts with 'A config object is using the 'env' key, which is not supported in flat config system. Flat config uses 'languageOptions.globals' to define global variables for your files.' A top-level parserOptions key gives 'Flat config uses 'languageOptions.parserOptions' to specify parser options.' Both exit with code 2 and link to the migration guide. The 'globals' package (not installed by default) is what you import to get node/browser global sets.
