From 63d3df5c561083fcd09eedb71abacb8066bdff2f Mon Sep 17 00:00:00 2001 From: Toru Nagashima Date: Sat, 17 Feb 2018 13:20:43 +0900 Subject: [PATCH 1/3] Docs: deprecate experimentalObjectRestSpread --- docs/user-guide/configuring.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/user-guide/configuring.md b/docs/user-guide/configuring.md index 5d4f93d5518..b31ee2adcf9 100644 --- a/docs/user-guide/configuring.md +++ b/docs/user-guide/configuring.md @@ -32,7 +32,6 @@ Parser options are set in your `.eslintrc.*` file by using the `parserOptions` p * `globalReturn` - allow `return` statements in the global scope * `impliedStrict` - enable global [strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode) (if `ecmaVersion` is 5 or greater) * `jsx` - enable [JSX](https://facebook.github.io/jsx/) - * `experimentalObjectRestSpread` - enable support for the experimental [object rest/spread properties](https://github.com/tc39/proposal-object-rest-spread) (**IMPORTANT:** This is an experimental feature that may change significantly in the future. It's recommended that you do *not* write rules relying on this functionality unless you are willing to incur maintenance cost when it changes.) Here's an example `.eslintrc.json` file: @@ -53,6 +52,10 @@ Here's an example `.eslintrc.json` file: Setting parser options helps ESLint determine what is a parsing error. All language options are `false` by default. +### Deprecated + +* `ecmaFeatures.experimentalObjectRestSpread` - enable support for the experimental [object rest/spread properties](https://github.com/tc39/proposal-object-rest-spread). This syntax has been supported in `ecmaVersion: 2018`. This option will be removed in ESLint 5.0.0. + ## Specifying Parser 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: From 1edd70189d054a67ac6d1282dd390cdd3275dd53 Mon Sep 17 00:00:00 2001 From: Toru Nagashima Date: Mon, 19 Feb 2018 12:06:29 +0900 Subject: [PATCH 2/3] reword --- 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 b31ee2adcf9..9b0e7b5d73f 100644 --- a/docs/user-guide/configuring.md +++ b/docs/user-guide/configuring.md @@ -54,7 +54,7 @@ Setting parser options helps ESLint determine what is a parsing error. All langu ### Deprecated -* `ecmaFeatures.experimentalObjectRestSpread` - enable support for the experimental [object rest/spread properties](https://github.com/tc39/proposal-object-rest-spread). This syntax has been supported in `ecmaVersion: 2018`. This option will be removed in ESLint 5.0.0. +* `ecmaFeatures.experimentalObjectRestSpread` - enable support for the experimental [object rest/spread properties](https://github.com/tc39/proposal-object-rest-spread). This syntax has been supported in `ecmaVersion: 2018`. This option will be removed in future. ## Specifying Parser From 233699ffcd4f179d6ec0caa938f5e2efec320ba4 Mon Sep 17 00:00:00 2001 From: Toru Nagashima Date: Mon, 19 Feb 2018 12:10:31 +0900 Subject: [PATCH 3/3] add the --- 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 9b0e7b5d73f..49d6f8149a1 100644 --- a/docs/user-guide/configuring.md +++ b/docs/user-guide/configuring.md @@ -54,7 +54,7 @@ Setting parser options helps ESLint determine what is a parsing error. All langu ### Deprecated -* `ecmaFeatures.experimentalObjectRestSpread` - enable support for the experimental [object rest/spread properties](https://github.com/tc39/proposal-object-rest-spread). This syntax has been supported in `ecmaVersion: 2018`. This option will be removed in future. +* `ecmaFeatures.experimentalObjectRestSpread` - enable support for the experimental [object rest/spread properties](https://github.com/tc39/proposal-object-rest-spread). This syntax has been supported in `ecmaVersion: 2018`. This option will be removed in the future. ## Specifying Parser