Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Commit 653dd1b

Browse files
author
Michael Busby
authored
Add ?? support to default parser plugins
I had to add this to my proejct's stylelint config to get my stylelint working after adopting nullish coalescing in my codebase. Now that Nullish Coalesce is stage 3, and it's enabled by default in projects like Typescript, this might be a useful default to add. Since optional chaining support is already in, this shouldn't be a too radical change. Just a proposal!
1 parent 5bd0505 commit 653dd1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parsers/babylon-parser.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = (type, plugins) => input =>
1414
'functionBind',
1515
'functionSent',
1616
'dynamicImport',
17+
'nullishCoalescingOperator',
1718
'optionalCatchBinding',
1819
'optionalChaining'
1920
]

0 commit comments

Comments
 (0)