Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docs: Mention sourceType in parser/parserOptions #11016

Open
Labels
documentationDocumentation ("docs") that needs adding/updatingteam assignedA member of the typescript-eslint team should work on this.
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Before You File a Documentation Request Please Confirm You Have Done The Following...

Suggested Changes

Coming over fromeslint/eslint#19563 (comment) ->#11012:sourceType is an optional property for the parser's parserOptions:

sourceType?:SourceType|undefined;

It's not mentioned anywhere onhttps://typescript-eslint.io/packages/parser. The page'shttps://typescript-eslint.io/packages/parser#configuration docs mention:

The following additional configuration options are available by specifying them in[`parserOptions`](https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options) in your ESLint configuration file.

...which seems to imply these options are a superset of ESLint core's inhttps://eslint.org/docs/latest/use/configure/language-options#specifying-parser-options, maybe? But I don't think that's extremely clear. I think it'd be good to explicitly mention at leastsourceType in the docs.

Affected URL(s)

https://typescript-eslint.io/packages/parser

Additional Info

Question: are there other properties end users / rule testers might need?

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation ("docs") that needs adding/updatingteam assignedA member of the typescript-eslint team should work on this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp