Skip to content
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

[FEAT] Multiple tsconfig.json support #21

Closed
teoxoy opened this issue Aug 2, 2019 · 5 comments · Fixed by #27
Closed

[FEAT] Multiple tsconfig.json support #21

teoxoy opened this issue Aug 2, 2019 · 5 comments · Fixed by #27

Comments

@teoxoy
Copy link
Contributor

teoxoy commented Aug 2, 2019

I am currently working on a yarn workspaces monorepo with one eslint config file at the root.
@typescript-eslint/parser supports multiple eslint configs trough parserOptions.projects

I am not sure if this can be automated (i.e. the plugin reads parserOptions.projects)

@mrmckeb
Copy link

mrmckeb commented Sep 23, 2019

I've just hit this too, it would be great to have. If you can point me in the right direction, I'd be happy to make a PR.

@teoxoy
Copy link
Contributor Author

teoxoy commented Sep 23, 2019

Check out: eslint-import-resolver-ts

@JounQin JounQin mentioned this issue Sep 28, 2019
@factoidforrest
Copy link

btw if anyone stumbles upon this like I did, it's natively supported now, just pass an array of projects in parserOptions

@JounQin
Copy link
Collaborator

JounQin commented Oct 22, 2021

@factoidforrest parserOptions.project is for @typescript-eslint/eslint-parser, settings['import/resolvers'].typescript.project is for this resolver.

@Voyager-Two
Copy link

Voyager-Two commented Mar 25, 2022

For anyone else that stumbles upon this, edit eslint config with something like this:

  "settings": {
    "import/resolver": {
      "typescript": {
        "project": ["tsconfig.json", "src/client/tsconfig.json"]
      },
    }
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants