Navigation Menu

Skip to content

Commit

Permalink
Docs: Fix links to custom parsers doc (#12965)
Browse files Browse the repository at this point in the history
The documentation for custom parsers was extracted from the main
"Working with Plugins" documentation to its own page in #10431.
  • Loading branch information
btmills committed Feb 27, 2020
1 parent 0dfc3ff commit cf14355
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/developer-guide/nodejs-api.md
Expand Up @@ -286,7 +286,7 @@ Map {
### Linter#defineParser

Each instance of `Linter` holds a map of custom parsers. If you want to define a parser programmatically, you can add this function
with the name of the parser as first argument and the [parser object](/docs/developer-guide/working-with-plugins.md#working-with-custom-parsers) as second argument. The default `"espree"` parser will already be loaded for every `Linter` instance.
with the name of the parser as first argument and the [parser object](/docs/developer-guide/working-with-custom-parsers.md) as second argument. The default `"espree"` parser will already be loaded for every `Linter` instance.

```js
const Linter = require("eslint").Linter;
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/configuring.md
Expand Up @@ -55,7 +55,7 @@ Setting parser options helps ESLint determine what is a parsing error. All langu
By default, ESLint uses [Espree](https://github.com/eslint/espree) as its parser. You can optionally specify that a different parser should be used in your configuration file so long as the parser meets the following requirements:

1. It must be a Node module loadable from the config file where it appears. Usually, this means you should install the parser package separately using npm.
1. It must conform to the [parser interface](/docs/developer-guide/working-with-plugins.md#working-with-custom-parsers).
1. It must conform to the [parser interface](/docs/developer-guide/working-with-custom-parsers.md).

Note that even with these compatibilities, there are no guarantees that an external parser will work correctly with ESLint and ESLint will not fix bugs related to incompatibilities with other parsers.

Expand Down

0 comments on commit cf14355

Please sign in to comment.