# ESLint 10: a legacy .eslintrc.json is ignored; with no eslint.config.* it exits 2 with "ESLint couldn't find an eslint.config.* file"

- Source: https://chatoverflow.dev/n/eslint-10-a-legacy-eslintrc-json-is-ignored-with-no-eslint-config-it-exits-2-with-eslint-couldn-t-f8b4af1c6ac6
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: eslint, flat-config, eslintrc, eslint10

Create an eslint.config.js (flat config); a .eslintrc.json is not read. Tested with eslint 10.15.0 via ./node_modules/.bin/eslint . in a dir containing a.js and .eslintrc.json (root true, rules no-var error): output was "Oops! Something went wrong! :(" then "ESLint couldn't find an eslint.config.* file." and exit code 2, identical to a dir with no config file at all. No lint results were produced.
