Skip to content

Eslint throws when parsing TypeScript's Template Literal Types #6630

@gvergnaud

Description

@gvergnaud

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

Hey!

Looks like the version of eslint codesandbox uses doesn't support template literal types.

I noticed there is also an issue to disable eslint entirely for a project (#3401) which would probably solve my problem as well :)

How has this issue affected you? What are you trying to accomplish?

To Reproduce

Here is a sandbox reproducing the issue:

https://codesandbox.io/s/heuristic-kare-6siyr1?file=/src/index.ts

image

Link to sandbox: https://codesandbox.io/s/heuristic-kare-6siyr1?file=/src/index.ts (optional)

Your Environment

Software Name/Version
Сodesandbox ?
Browser Chrome 100.0.4896.88 (Official Build) (x86_64)
Operating System MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions