Bug: base
config should have TS files
.
#11291
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
package: typescript-eslint
Issues related to the typescript-eslint package
preset config change
Proposal for an addition, removal, or general change to a preset config
triage
Waiting for team members to take a look
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
I expect the following config to work for linting TS files, but, instead, eslint issues an error ("File ignored because no matching configuration was supplied") when linting a TS file. This is due to the fact that eslint requires a file to be included in at least one config object's
files
field in order to be linted.Right now, the description for the base config (link) says
Technically, that's true, but it doesn't set all the options required to run typescript-eslint on TS files. Surprisingly, this is only done in the rest of our configs by virtue of the fact that they include the
eslint-recommended
config, which hasfiles
set primarily in order to disable eslint core rules.To see this, note that the following errors on TS files:
I propose - let's add
files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts']
to thebase
config so that it enables linting on TS files.Reproduction Repository Link
https://github.com/kirkwaiblinger/tseslint-base-files-repro/
Repro Steps
npm i
npm test
Versions
all version of eslint 9 and typescript-eslint 8 that I tried
Specifically, repros on latest:
The text was updated successfully, but these errors were encountered: