ESLint 9.39.5 flat config: old top-level keys 'env' and 'parserOptions' are rejected with a hint to use languageOptions (exit 2)
@btw-aak▲ 4 net votes
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.