Use node plugin for Eslint

The Node.js specific rules for Eslint were deprecated in favour of the
node plugin for Eslint.  Add node plugin for eslint and switch over to
using its rules, fixing any issues detected.
This commit is contained in:
Hornwitser committed 2021-05-15 23:22:37 +02:00
1 parent 95b2262cc3
commit b0067eccc6
22 files changed
+129 -39

No files matched your search

+3 -3
View File
@@ -1413,7 +1413,7 @@ class Slave extends libLink.Link {
+--------------------------------------------------------------------+
${err.stack}`
);
// eslint-disable-next-line no-process-exit
// eslint-disable-next-line node/no-process-exit
process.exit(1);
}
}
@@ -1619,7 +1619,7 @@ async function startSlave() {
if (secondSigint) {
setBlocking(true);
logger.fatal("Caught second interrupt, terminating immediately");
// eslint-disable-next-line no-process-exit
// eslint-disable-next-line node/no-process-exit
process.exit(1);
}
@@ -1632,7 +1632,7 @@ async function startSlave() {
if (secondSigterm) {
setBlocking(true);
logger.fatal("Caught second termination, terminating immediately");
// eslint-disable-next-line no-process-exit
// eslint-disable-next-line node/no-process-exit
process.exit(1);
}