8000 Support tsconfig.extends as `array` · Issue #6219 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content

Support tsconfig.extends as array #6219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
hubertkuoch opened this issue Dec 15, 2022 · 1 comment
Closed
4 tasks done

Support tsconfig.extends as array #6219

hubertkuoch opened this issue Dec 15, 2022 · 1 comment
Labels
bug Something isn't working triage Waiting for team members to take a look

Comments

@hubertkuoch
Copy link
hubertkuoch commented Dec 15, 2022

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

parser

Playground Link

No response

Repro Code

npm eslint --config .eslintrc.cjs .
// or 
yarn eslint --config .eslintrc.cjs .
// or
pnpm eslint --config .eslintrc.cjs .


### ESLint Config

```javascript
module.exports = {
  parser: '@typescript-eslint/parser',
  extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
}

tsconfig

{
  "extends": ["tsconfig.json"]
  "compilerOptions": {
    // ...
  }
}

Expected Result

Since tsconfig.extends now accepts array, ESLint should also be able to parse it and run normally.

Actual Result

Parsing error: Compiler option 'extends' requires a value of type string

Additional Info

No response

Versions

package version
@typescript-eslint/eslint-plugin 5.42.0
@typescript-eslint/parser 5.42.0
@typescript-eslint/scope-manager X.Y.Z
TypeScript 5.0.0-dev.20221214
ESLint 8.26.0
node 18.12.1
@hubertkuoch hubertkuoch added bug Something isn't working triage Waiting for team members to take a look labels Dec 15, 2022
@bradzacher
Copy link
Member
bradzacher commented Dec 15, 2022

We do not support "dev" versions of TS. We will assess this as part of the 5.0 release when it comes around.

https://typescript-eslint.io/maintenance/versioning#typescript

@bradzacher bradzacher closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working triage Waiting for team members to take a look
Projects
None yet
Development

No branches or pull requests

2 participants
0