Skip to content

Missing typescript setting in flatConfigs.typescript #3170

Open
@nbouvrette

Description

@nbouvrette

With the recent official support of ESLint TypeScript config (ref), when trying to setup the example config in the README file, I get the following issue:

Unable to resolve path to module 'typescript-eslint'.eslint[import/no-unresolved](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unresolved.md)

I managed to fix this by adding this extra setting:

    settings: {
      'import/resolver': {
        typescript: true,
      },
    },

When I look at what settings flatConfigs.typescript has, it only has the following settings:

    'import/resolver': {
      node: {
        extensions: allExtensions,
      },
    },

I presume we should add typescript: true in flatConfigs.typescript or otherwise maybe mentionning this somewhere in the doc? The only way I was able to fix this was because I had this in a previous config.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions