From 62ddad2eec54a38c5b2412fe455ac763c70bccd3 Mon Sep 17 00:00:00 2001 From: "weiran.zsd" Date: Sat, 9 Feb 2019 19:01:40 +0800 Subject: [PATCH 1/2] 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 d6626862d34..a7aa58f5eb7 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 1eed790a2e8..a6b8d89e6a8 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) - An ESLint custom parser which leverages TypeScript ESTree to allow for ESLint to lint TypeScript source code. 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. From 0b0eab2298c1afa0acdbf3bc1d21976b6a02e270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Sun, 10 Feb 2019 02:29:48 +0800 Subject: [PATCH 2/2] Update configuring.md --- docs/user-guide/configuring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-guide/configuring.md b/docs/user-guide/configuring.md index a6b8d89e6a8..dbbafbc2986 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](https://www.npmjs.com/package/@typescript-eslint/parser) - An ESLint custom parser which leverages TypeScript ESTree to allow for ESLint to lint TypeScript source code. 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. 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.