From: Jérôme Benoit Date: Fri, 20 May 2022 05:24:34 +0000 (+0200) Subject: Use JsDoc default regexp X-Git-Tag: v2.2.1~70 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=90a9a10f90101fa6ad60683f4ce75bb422c8652d;p=poolifier.git Use JsDoc default regexp Signed-off-by: Jérôme Benoit --- diff --git a/.eslintrc.js b/.eslintrc.js index 97308150..8e43f37e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -81,9 +81,9 @@ module.exports = defineConfig({ 'jsdoc/match-description': [ 'warn', { - mainDescription: - '/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us', - matchDescription: '^[A-Z`].+(\\.|`.+`)$', + // mainDescription: + // '/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us', + // matchDescription: '^[A-Z`].+(\\.|`.+`)$', contexts: ['any'], tags: { param: true, diff --git a/src/utility-types.ts b/src/utility-types.ts index 769949e0..4e2f3de4 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -34,7 +34,7 @@ export interface MessageValue< /** * Reference to main worker. * - * _Only for internal use_ + * Only for internal use. */ readonly parent?: MainWorker } diff --git a/tests/worker/thread-worker.test.js b/tests/worker/thread-worker.test.js index 0024fe0a..2bbb280f 100644 --- a/tests/worker/thread-worker.test.js +++ b/tests/worker/thread-worker.test.js @@ -7,7 +7,7 @@ const postMessage = function () { } class SpyWorker extends ThreadWorker { getMainWorker () { - return { postMessage: postMessage } + return { postMessage } } }