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

Commit

Permalink
Add ?? support to default parser plugins
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
Michael Busby committed Nov 10, 2019
1 parent 5bd0505 commit 653dd1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parsers/babylon-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = (type, plugins) => input =>
'functionBind',
'functionSent',
'dynamicImport',
'nullishCoalescingOperator',
'optionalCatchBinding',
'optionalChaining'
]
Expand Down

0 comments on commit 653dd1b

Please sign in to comment.