Make ESLint require backticks.

This commit is contained in:
David Braun 2019-04-06 09:45:41 -04:00
parent 72bf839541
commit a6233e3884
No known key found for this signature in database
GPG key ID: 87EC41ADF710B7E2
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ module.exports = {
ecmaVersion: 2017
},
rules: {
quotes: ["error", "backtick"],
"no-undef": "error",
"no-unused-vars": "warn"
}

View file

@ -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);
}
}
})();