Make ESLint require backticks.
This commit is contained in:
parent
72bf839541
commit
a6233e3884
2 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ module.exports = {
|
|||
ecmaVersion: 2017
|
||||
},
|
||||
rules: {
|
||||
quotes: ["error", "backtick"],
|
||||
"no-undef": "error",
|
||||
"no-unused-vars": "warn"
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue