Skip to content

Bug: config function from typescript-eslint doesn't use ignores when extends is provided. #8511

@Dremora

Description

@Dremora

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinglocked due to agePlease 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 package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy