build: refine linter configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 15 Aug 2023 18:44:57 +0000 (20:44 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 15 Aug 2023 18:44:57 +0000 (20:44 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.eslintrc.js
src/worker/abstract-worker.ts

index 9bf41f268ea143ee9841e6575ac2f6c9223aa8fd..7453ecbfb1d4e496b39d9c8f5a267b3e9b7c8a9d 100644 (file)
@@ -68,6 +68,7 @@ module.exports = defineConfig({
           'localhost',
           'microjob',
           'mjs',
+          'nodemailer',
           'npx',
           'num',
           'os',
index 3718964a1b1de8d14abc2bfd8c09769eefd663f8..ff31fc7cb1879e19435c7942ca34c80b1a5a2051 100644 (file)
@@ -103,8 +103,8 @@ export abstract class AbstractWorker<
     this.opts.killBehavior = opts.killBehavior ?? DEFAULT_KILL_BEHAVIOR
     this.opts.maxInactiveTime =
       opts.maxInactiveTime ?? DEFAULT_MAX_INACTIVE_TIME
-    delete this.opts.async
     this.opts.killHandler = opts.killHandler ?? EMPTY_FUNCTION
+    delete this.opts.async
   }
 
   /**