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

Appearance settings

Docs: Mention sourceType in parser/parserOptions #11016

Copy link
Copy link
Open
@JoshuaKGoldberg

Description

@JoshuaKGoldberg
Issue body actions

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

Suggested Changes

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

sourceType?: SourceType | undefined;

It's not mentioned anywhere on https://typescript-eslint.io/packages/parser. The page's https://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 in https://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 least sourceType 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/updatingDocumentation ("docs") that needs adding/updatingteam assignedA member of the typescript-eslint team should work on this.A 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.