From a6233e3884317066ebee1d55da0644421558712b Mon Sep 17 00:00:00 2001 From: David Braun Date: Sat, 6 Apr 2019 09:45:41 -0400 Subject: [PATCH] Make ESLint require backticks. --- .eslintrc.js | 1 + lib/index.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 43d3f38..d57a208 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -8,6 +8,7 @@ module.exports = { ecmaVersion: 2017 }, rules: { + quotes: ["error", "backtick"], "no-undef": "error", "no-unused-vars": "warn" } diff --git a/lib/index.js b/lib/index.js index 4d07c13..6b22af7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -368,7 +368,7 @@ Channel.from = (values, mapfn, thisArg) => { } } catch (exception) { // Node.js stream.readable - values.on("readable", async () => { + values.on(`readable`, async () => { while (true) { const data = values.read(); @@ -380,7 +380,7 @@ Channel.from = (values, mapfn, thisArg) => { } }); - values.once("end", channel.close); + values.once(`end`, channel.close); } } })();