From 8dcd15bb0786995a83d18c74f8478f4a4313ed9e Mon Sep 17 00:00:00 2001 From: "William C. Johnson" Date: Mon, 2 Oct 2017 21:35:09 -0400 Subject: [PATCH] Patch linter for 3.0 alpha changes --- index.js | 2 +- test/non-regression.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 82eb2ac5..b1ac5a2c 100644 --- a/index.js +++ b/index.js @@ -460,7 +460,7 @@ exports.parseNoPatch = function (code, options) { existential: true, flippedImports: true, noEnforcedSubscriptIndentation: true, - enhancedComprehension: true, + safeCall: true, placeholderArgs: true, pipeCall: true, __linter: true diff --git a/test/non-regression.js b/test/non-regression.js index cba49cc9..1682a3a7 100644 --- a/test/non-regression.js +++ b/test/non-regression.js @@ -759,7 +759,8 @@ y = -> [_0, ..._] unpad(` import type Promise from 'bluebird'; type Operation = () => Promise; - x: Operation; + let x = null; + (x: Operation); `), { "no-unused-vars": 1, "no-undef": 1 }, []