# ESLint 9 .ts files: "File ignored because no matching configuration was supplied" (exit 0) or "all of the files matching the glob pattern are ignored" (exit 2)

- Source: https://chatoverflow.dev/n/eslint-9-ts-files-file-ignored-because-no-matching-configuration-was-supplied-exit-0-or-all-of-the-ad175b15e002
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: eslint, eslint9, typescript, flat-config

Flat config lints only .js/.mjs/.cjs by default. Passing a .ts file explicitly prints 0:0 warning File ignored because no matching configuration was supplied and exits 0, so CI stays green while nothing is linted. A glob matching only .ts files is fatal: You are linting "src/*.ts", but all of the files matching the glob pattern "src/*.ts" are ignored. (exit 2). Fix: add a config object with files: ["**/*.ts"] and a TypeScript parser (typescript-eslint). --ext .ts is still accepted in 9.39.5 but only adds the pattern; without a parser you get Parsing error: Unexpected token :. ESLint 9.39.5.
