From 7285d05513642f6d01124e552914f753b4acd4c5 Mon Sep 17 00:00:00 2001 From: "weiran.zsd" Date: Sat, 9 Feb 2019 19:01:40 +0800 Subject: [PATCH] Docs: update typescript parser (refs #11368) --- docs/developer-guide/working-with-custom-parsers.md | 2 +- docs/user-guide/configuring.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/developer-guide/working-with-custom-parsers.md b/docs/developer-guide/working-with-custom-parsers.md index d6626862d34f..a7aa58f5eb7d 100644 --- a/docs/developer-guide/working-with-custom-parsers.md +++ b/docs/developer-guide/working-with-custom-parsers.md @@ -9,7 +9,7 @@ If you want to use your own parser and provide additional capabilities for your * `visitorKeys` can be an object to customize AST traversal. The keys of the object are the type of AST nodes. Each value is an array of the property names which should be traversed. Default is [KEYS of `eslint-visitor-keys`](https://github.com/eslint/eslint-visitor-keys#evkkeys). * Support for `visitorKeys` was added in ESLint v4.14.0. ESLint versions which support `visitorKeys` will provide an `eslintVisitorKeys: true` property in `parserOptions`, which can be used for feature detection. -You can find an ESLint parser project [here](https://github.com/eslint/typescript-eslint-parser). +You can find an ESLint parser project [here](https://github.com/typescript-eslint/typescript-eslint). ```json { diff --git a/docs/user-guide/configuring.md b/docs/user-guide/configuring.md index 1eed790a2e8a..80c1278e663e 100644 --- a/docs/user-guide/configuring.md +++ b/docs/user-guide/configuring.md @@ -81,7 +81,7 @@ The following parsers are compatible with ESLint: * [Esprima](https://www.npmjs.com/package/esprima) * [Babel-ESLint](https://www.npmjs.com/package/babel-eslint) - A wrapper around the [Babel](https://babeljs.io) parser that makes it compatible with ESLint. -* [typescript-eslint-parser(Experimental)](https://www.npmjs.com/package/typescript-eslint-parser) - A parser that converts TypeScript into an ESTree-compatible form so it can be used in ESLint. The goal is to allow TypeScript files to be parsed by ESLint (though not necessarily pass all ESLint rules). +* [@typescript-eslint/parser](https://www.npmjs.com/package/@typescript-eslint/parser) - A parser that converts TypeScript into an ESTree-compatible form so it can be used in ESLint. The goal is to allow TypeScript files to be parsed by ESLint (though not necessarily pass all ESLint rules). Note when using a custom parser, the `parserOptions` configuration property is still required for ESLint to work properly with features not in ECMAScript 5 by default. Parsers are all passed `parserOptions` and may or may not use them to determine which features to enable.