Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable nullish coalescing by default in @babel/parser (#10819)
* move files, remove hasPlugin() & expectPlugin() * restore permissions
- Loading branch information
1 parent
5b907e9
commit c3388ea
Showing
41 changed files
with
13 additions
and
54 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
3 changes: 0 additions & 3 deletions
3
packages/babel-generator/test/fixtures/types/LogicalExpression/options.json
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...perator/no-paren-and-nullish/options.json → ...perator/no-paren-and-nullish/options.json
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": ["nullishCoalescingOperator", "estree"], | ||
"plugins": ["estree"], | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)" | ||
} |
File renamed without changes.
1 change: 0 additions & 1 deletion
1
...perator/no-paren-nullish-and/options.json → ...perator/no-paren-nullish-and/options.json
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"plugins": ["nullishCoalescingOperator"], | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:5)" | ||
} |
File renamed without changes.
1 change: 0 additions & 1 deletion
1
...operator/no-paren-nullish-or/options.json → ...operator/no-paren-nullish-or/options.json
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"plugins": ["nullishCoalescingOperator"], | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:10)" | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...operator/no-paren-or-nullish/options.json → ...operator/no-paren-or-nullish/options.json
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": ["nullishCoalescingOperator", "estree"], | ||
"plugins": ["estree"], | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
...scing-operator/with-pipeline/options.json → ...scing-operator/with-pipeline/options.json
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
"nullishCoalescingOperator", | ||
["pipelineOperator", { "proposal": "minimal" }] | ||
] | ||
} |
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
...tures/experimental/logical-assignment-operator/qq-equals-no-null-coalesce-plugin/input.js
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...s/experimental/logical-assignment-operator/qq-equals-no-null-coalesce-plugin/options.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...r/test/fixtures/experimental/logical-assignment-operator/qq-equals-no-plugin/options.json
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"plugins": ["nullishCoalescingOperator"], | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'logicalAssignment' (1:2)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...abel-parser/test/fixtures/experimental/logical-assignment-operator/qq-equals/options.json
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": ["logicalAssignment", "nullishCoalescingOperator"] | ||
"plugins": ["logicalAssignment"] | ||
} |
3 changes: 0 additions & 3 deletions
3
...el-parser/test/fixtures/experimental/nullish-coalescing-operator/and-nullish/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...-parser/test/fixtures/experimental/nullish-coalescing-operator/associativity/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...bel-parser/test/fixtures/experimental/nullish-coalescing-operator/expression/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...abel-parser/test/fixtures/experimental/nullish-coalescing-operator/multiline/options.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...el-parser/test/fixtures/experimental/nullish-coalescing-operator/no-plugin-error/input.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...arser/test/fixtures/experimental/nullish-coalescing-operator/no-plugin-error/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...el-parser/test/fixtures/experimental/nullish-coalescing-operator/nullish-and/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...bel-parser/test/fixtures/experimental/nullish-coalescing-operator/nullish-or/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...bel-parser/test/fixtures/experimental/nullish-coalescing-operator/or-nullish/options.json
This file was deleted.
Oops, something went wrong.