Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
],
},
},
- ...plugins['typescript-eslint'].config(
- ...plugins['typescript-eslint'].configs.strictTypeChecked,
- ...plugins['typescript-eslint'].configs.stylisticTypeChecked
- ),
...neostandard({
ts: true,
globals: {
...globals.mocha,
},
}),
+ ...plugins['typescript-eslint'].config(
+ ...plugins['typescript-eslint'].configs.strictTypeChecked,
+ ...plugins['typescript-eslint'].configs.stylisticTypeChecked
+ ),
{
languageOptions: {
parserOptions: {
const workerFile = join(
dirname(fileURLToPath(import.meta.url)),
- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
`worker${extname(fileURLToPath(import.meta.url))}`
)
) {
this.redistributeQueuedTasks(this.workerNodes.indexOf(workerNode))
}
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, promise/no-promise-in-callback
workerNode?.terminate().catch((error: unknown) => {
this.emitter?.emit(PoolEvents.error, error)
})