-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Update: re-enable experimentalObjectRestSpread (fixes #9990) And it generates a deprecation warning to show that the option has been deprecated. * move warning to config-validator * revert some unnecessary changes * move ecmaVersion=9 to resolveParserOptions function * change error code of deprecation warnings * make tests robuster * fix Node 6.x problem. * fix Node 6.x problem.
- Loading branch information
1 parent
f9c7371
commit a82cbea
Showing
11 changed files
with
192 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/fixtures/config-file/experimental-object-rest-spread/another-parser/.eslintrc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
root: true | ||
|
||
parser: ./parser.js | ||
parserOptions: | ||
ecmaFeatures: | ||
experimentalObjectRestSpread: true |
1 change: 1 addition & 0 deletions
1
tests/fixtures/config-file/experimental-object-rest-spread/another-parser/parser.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports.parse = () => ({ type: "Program", body: [] }) |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/config-file/experimental-object-rest-spread/basic/.eslintrc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
root: true | ||
|
||
parserOptions: | ||
ecmaFeatures: | ||
experimentalObjectRestSpread: true |
4 changes: 4 additions & 0 deletions
4
tests/fixtures/config-file/experimental-object-rest-spread/extends/.eslintrc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
root: true | ||
|
||
extends: | ||
- ./common.yml |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/config-file/experimental-object-rest-spread/extends/common.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
parserOptions: | ||
ecmaFeatures: | ||
experimentalObjectRestSpread: true |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/config-file/experimental-object-rest-spread/subdir/.eslintrc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
root: true | ||
|
||
parserOptions: | ||
ecmaFeatures: | ||
experimentalObjectRestSpread: true |
2 changes: 2 additions & 0 deletions
2
tests/fixtures/config-file/experimental-object-rest-spread/subdir/lib/.eslintrc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rules: | ||
no-undef: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters