Enable nullish coalescing by default in @babel/parser (#10819)

* move files, remove hasPlugin() & expectPlugin()

* restore permissions
This commit is contained in:
Oleksandr Fediashov
2020-01-10 02:52:53 +01:00
committed by Nicolò Ribaudo
parent 5b907e9bb7
commit c3388ea42f
41 changed files with 13 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
{
"plugins": ["nullishCoalescingOperator", "estree"],
"plugins": ["estree"],
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)"
}

View File

@@ -1,4 +1,3 @@
{
"plugins": ["nullishCoalescingOperator"],
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:5)"
}

View File

@@ -1,4 +1,3 @@
{
"plugins": ["nullishCoalescingOperator"],
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:10)"
}

View File

@@ -1,4 +1,4 @@
{
"plugins": ["nullishCoalescingOperator", "estree"],
"plugins": ["estree"],
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)"
}

View File

@@ -1,4 +0,0 @@
{
"plugins": ["logicalAssignment"],
"throws": "This experimental syntax requires enabling the parser plugin: 'nullishCoalescingOperator' (1:2)"
}

View File

@@ -1,4 +1,3 @@
{
"plugins": ["nullishCoalescingOperator"],
"throws": "This experimental syntax requires enabling the parser plugin: 'logicalAssignment' (1:2)"
}

View File

@@ -1,3 +1,3 @@
{
"plugins": ["logicalAssignment", "nullishCoalescingOperator"]
"plugins": ["logicalAssignment"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["nullishCoalescingOperator"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["nullishCoalescingOperator"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["nullishCoalescingOperator"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["nullishCoalescingOperator"]
}

View File

@@ -1,3 +0,0 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'nullishCoalescingOperator' (1:4)"
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["nullishCoalescingOperator"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["nullishCoalescingOperator"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["nullishCoalescingOperator"]
}