From cf14355e34a6757e15806f8e493553bd7110fb36 Mon Sep 17 00:00:00 2001 From: Brandon Mills Date: Thu, 27 Feb 2020 13:19:00 -0500 Subject: [PATCH] Docs: Fix links to custom parsers doc (#12965) The documentation for custom parsers was extracted from the main "Working with Plugins" documentation to its own page in #10431. --- docs/developer-guide/nodejs-api.md | 2 +- docs/user-guide/configuring.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/developer-guide/nodejs-api.md b/docs/developer-guide/nodejs-api.md index 3f25b726f4c..340498d849b 100644 --- a/docs/developer-guide/nodejs-api.md +++ b/docs/developer-guide/nodejs-api.md @@ -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; diff --git a/docs/user-guide/configuring.md b/docs/user-guide/configuring.md index a257e317681..b31ce2ebbc7 100644 --- a/docs/user-guide/configuring.md +++ b/docs/user-guide/configuring.md @@ -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.