refactor: renable standard JS linter rules
[poolifier.git] / src / worker / utils.ts
index f88ead7dcbcd238cb990ebaed48e23f625201c4c..b9372401ed881988d893248167d98a6b222c00be 100644 (file)
@@ -1,6 +1,6 @@
-import { isPlainObject } from '../utils'
-import type { TaskFunction } from './task-functions'
-import { KillBehaviors, type WorkerOptions } from './worker-options'
+import { isPlainObject } from '../utils.js'
+import type { TaskFunction } from './task-functions.js'
+import { KillBehaviors, type WorkerOptions } from './worker-options.js'
 
 export const checkValidWorkerOptions = (opts: WorkerOptions): void => {
   if (opts != null && !isPlainObject(opts)) {
@@ -28,9 +28,6 @@ export const checkValidWorkerOptions = (opts: WorkerOptions): void => {
   if (opts?.killHandler != null && typeof opts.killHandler !== 'function') {
     throw new TypeError('killHandler option is not a function')
   }
-  if (opts?.async != null) {
-    throw new Error('async option is deprecated')
-  }
 }
 
 export const checkValidTaskFunctionEntry = <Data = unknown, Response = unknown>(