-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: typescript-eslintIssues related to the typescript-eslint packageIssues related to the typescript-eslint package
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Relevant Package
typescript-eslint
Playground Link
No response
Repro Code
I want to apply type-checked rules to most of my codebase with some exceptions. This is the config I have:
ESLint Config
tseslint.config({
files: ['**/*.{ts,tsx}'],
ignores: ['libs/legacy-lib/**'],
extends: [
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
],
})
tsconfig
No response
Expected Result
I expect the final config to have ignores
applied to each of the configs I'm extending from.
Actual Result
Only files
are applied, not ignores
.
Additional Info
I can see from the code that ignores
is not supported. This is somewhat surprising, given that files
and ignores
are two sides of the same coin - the ability to provide a list of files which to apply the rules to.
However, adding this functionality will likely be considered a breaking change.
Versions
package | version |
---|---|
typescript-eslint |
7.0.1 |
doberkofler and Flayms
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: typescript-eslintIssues related to the typescript-eslint packageIssues related to the typescript-eslint package