Docs: Mention sourceType in parser/parserOptions #11016
Labels
documentation
Documentation ("docs") that needs adding/updating
team assigned
A member of the typescript-eslint team should work on this.
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:typescript-eslint/packages/types/src/parser-options.ts
Line 113 in a885343
It's not mentioned anywhere on https://typescript-eslint.io/packages/parser. The page's https://typescript-eslint.io/packages/parser#configuration docs mention:
typescript-eslint/docs/packages/Parser.mdx
Line 34 in a885343
...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?
💖
The text was updated successfully, but these errors were encountered: