Skip to content

Commit 151c965

Browse files
authored
docs: update context.languageOptions.parser description (#19084)
1 parent dc34f94 commit 151c965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/extend/custom-rules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ The `context` object has the following properties:
135135
* `languageOptions`: (`object`) more details for each property [here](../use/configure/language-options)
136136
* `sourceType`: (`'script' | 'module' | 'commonjs'`) The mode for the current file.
137137
* `ecmaVersion`: (`number`) The ECMA version used to parse the current file.
138-
* `parser`: (`object`|`string`): Either the parser used to parse the current file for flat config or its name for legacy config.
138+
* `parser`: (`object`): The parser used to parse the current file.
139139
* `parserOptions`: (`object`) The parser options configured for this file.
140140
* `globals`: (`object`) The specified globals.
141141
* `parserPath`: (`string`, **Removed** Use `context.languageOptions.parser` instead.) The name of the `parser` from the configuration.

0 commit comments

Comments
 (0)