Skip to content

Suggestion: Support TypeScript syntax in playground #709

Open
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

What problem do you want to solve?

Coming over from eslint/eslint#19431 (comment): the playground on http://eslint.org/play right now does not support TypeScript syntax. Now that rules are adding support for TS syntax (eslint/eslint#19173), this blocks their TS-specific blocks from being represented in the playground.

What do you think is the correct solution?

How about:

  • Adding an opt-in option to use @typescript-eslint/parser
  • Having rule samples that use a TypeScript language enable that option

Participation

  • I am willing to submit a pull request for this change.

Additional comments

No response

Metadata

Metadata

Labels

Type

No type

Projects

Status

Implementing

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions