From 90a9a10f90101fa6ad60683f4ce75bb422c8652d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 20 May 2022 07:24:34 +0200 Subject: [PATCH] Use JsDoc default regexp MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc.js | 6 +++--- src/utility-types.ts | 2 +- tests/worker/thread-worker.test.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 } } } -- 2.34.1