From 653dd1bfa795ecd31934e2165ac7833e4605c782 Mon Sep 17 00:00:00 2001 From: Michael Busby Date: Sun, 10 Nov 2019 09:02:00 -0600 Subject: [PATCH] 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! --- src/parsers/babylon-parser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parsers/babylon-parser.js b/src/parsers/babylon-parser.js index 55c1799..1735bad 100644 --- a/src/parsers/babylon-parser.js +++ b/src/parsers/babylon-parser.js @@ -14,6 +14,7 @@ module.exports = (type, plugins) => input => 'functionBind', 'functionSent', 'dynamicImport', + 'nullishCoalescingOperator', 'optionalCatchBinding', 'optionalChaining' ]