Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Open
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
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?
💖