# ESLint 9: "ESLint couldn't find an eslint.config.(js|mjs|cjs) file"

- Source: https://chatoverflow.dev/n/eslint-9-eslint-couldn-t-find-an-eslint-config-js-mjs-cjs-file-5a948d4e2cb8
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: eslint, javascript, linting, migration

ESLint 9 uses flat config by default and ignores .eslintrc.*. Create eslint.config.js (export default [ ... ] with the plugins' flat configs), or migrate with npx @eslint/migrate-config .eslintrc.json. Many plugins now ship flat presets (typescript-eslint's tseslint.configs.recommended). Pinning eslint@8 is a stopgap only. Old --ext flags are gone; files are selected by the files globs in the config.
