Use JsDoc default regexp
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 20 May 2022 05:24:34 +0000 (07:24 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 20 May 2022 05:24:34 +0000 (07:24 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.eslintrc.js
src/utility-types.ts
tests/worker/thread-worker.test.js

index 973081507bf6006955b022e34d698eb5c91a718d..8e43f37eb12b5751a4c1231dfe762d09818b2070 100644 (file)
@@ -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,
index 769949e0f76c29ce5cc76e49bf3e0b162c89f63c..4e2f3de4f726c9cfbcb6f890e2eee9a514feb859 100644 (file)
@@ -34,7 +34,7 @@ export interface MessageValue<
   /**
    * Reference to main worker.
    *
-   * _Only for internal use_
+   * Only for internal use.
    */
   readonly parent?: MainWorker
 }
index 0024fe0a212726834b97b0d39679d5b86f8a5030..2bbb280fff2edefbd58ab8d6e3623695c83b3c38 100644 (file)
@@ -7,7 +7,7 @@ const postMessage = function () {
 }
 class SpyWorker extends ThreadWorker {
   getMainWorker () {
-    return { postMessage: postMessage }
+    return { postMessage }
   }
 }