eslint-plugin-jsdoc 39.6.1 → 39.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -9651,6 +9651,11 @@ const MyComponent = ({ children }) => {
9651
9651
  */
9652
9652
  // "jsdoc/no-restricted-syntax": ["error"|"warn", {"contexts":[{"comment":"JsdocBlock[descriptionStartLine=0][hasPreterminalDescription=0]","context":"any","message":"Requiring descriptive text on 0th line and no preterminal description"}]}]
9653
9653
  // Message: Requiring descriptive text on 0th line and no preterminal description
9654
+
9655
+ /** Some text
9656
+ * @param sth Param text followed by no newline */
9657
+ // "jsdoc/no-restricted-syntax": ["error"|"warn", {"contexts":[{"comment":"JsdocBlock[descriptionStartLine=0][hasPreterminalTagDescription=1]","context":"any","message":"Requiring descriptive text on 0th line but no preterminal description"}]}]
9658
+ // Message: Requiring descriptive text on 0th line but no preterminal description
9654
9659
  ````
9655
9660
 
9656
9661
  The following patterns are not considered problems:
@@ -9716,6 +9721,11 @@ function foo(): string;
9716
9721
  /** Some text and
9717
9722
  * more */
9718
9723
  // "jsdoc/no-restricted-syntax": ["error"|"warn", {"contexts":[{"comment":"JsdocBlock[descriptionStartLine=0][hasPreterminalDescription=0]","context":"any","message":"Requiring descriptive text on 0th line and no preterminal description"}]}]
9724
+
9725
+ /** Some text
9726
+ * @param sth Param text followed by newline
9727
+ */
9728
+ // "jsdoc/no-restricted-syntax": ["error"|"warn", {"contexts":[{"comment":"JsdocBlock[descriptionStartLine=0][hasPreterminalTagDescription=1]","context":"any","message":"Requiring descriptive text on 0th line but no preterminal description"}]}]
9719
9729
  ````
9720
9730
 
9721
9731
 
@@ -18372,6 +18382,16 @@ const getTSFunctionComment = function (astNode) {
18372
18382
  return astNode;
18373
18383
  }
18374
18384
  };
18385
+
18386
+ const f =
18387
+ /**
18388
+ * Description.
18389
+ *
18390
+ * @returns Result.
18391
+ */
18392
+ () => {
18393
+ return function () {};
18394
+ };
18375
18395
  ````
18376
18396
 
18377
18397
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "http://gajus.com"
6
6
  },
7
7
  "dependencies": {
8
- "@es-joy/jsdoccomment": "~0.35.0",
8
+ "@es-joy/jsdoccomment": "~0.36.1",
9
9
  "comment-parser": "1.3.1",
10
10
  "debug": "^4.3.4",
11
11
  "escape-string-regexp": "^4.0.0",
@@ -16,27 +16,27 @@
16
16
  "description": "JSDoc linting rules for ESLint.",
17
17
  "devDependencies": {
18
18
  "@babel/cli": "^7.19.3",
19
- "@babel/core": "^7.19.6",
19
+ "@babel/core": "^7.20.2",
20
20
  "@babel/eslint-parser": "^7.19.1",
21
- "@babel/node": "^7.20.0",
21
+ "@babel/node": "^7.20.2",
22
22
  "@babel/plugin-syntax-class-properties": "^7.12.13",
23
23
  "@babel/plugin-transform-flow-strip-types": "^7.19.0",
24
- "@babel/preset-env": "^7.19.4",
24
+ "@babel/preset-env": "^7.20.2",
25
25
  "@babel/register": "^7.18.9",
26
26
  "@es-joy/jsdoc-eslint-parser": "^0.17.0",
27
27
  "@hkdobrev/run-if-changed": "^0.3.1",
28
- "@typescript-eslint/parser": "^5.42.0",
28
+ "@typescript-eslint/parser": "^5.44.0",
29
29
  "babel-plugin-add-module-exports": "^1.0.4",
30
30
  "babel-plugin-istanbul": "^6.1.1",
31
31
  "camelcase": "^6.3.0",
32
- "chai": "^4.3.6",
32
+ "chai": "^4.3.7",
33
33
  "cross-env": "^7.0.3",
34
34
  "decamelize": "^5.0.1",
35
- "eslint": "^8.26.0",
35
+ "eslint": "^8.28.0",
36
36
  "eslint-config-canonical": "~33.0.1",
37
37
  "gitdown": "^3.1.5",
38
38
  "glob": "^8.0.3",
39
- "husky": "^8.0.1",
39
+ "husky": "^8.0.2",
40
40
  "jsdoc-type-pratt-parser": "^3.1.0",
41
41
  "lint-staged": "^13.0.3",
42
42
  "lodash.defaultsdeep": "^4.6.1",
@@ -45,7 +45,7 @@
45
45
  "open-editor": "^3.0.0",
46
46
  "rimraf": "^3.0.2",
47
47
  "semantic-release": "^19.0.5",
48
- "typescript": "^4.8.4"
48
+ "typescript": "^4.9.3"
49
49
  },
50
50
  "engines": {
51
51
  "node": "^14 || ^16 || ^17 || ^18 || ^19"
@@ -117,5 +117,5 @@
117
117
  "test-cov": "cross-env TIMING=1 nyc --reporter text npm run test-no-cov",
118
118
  "test-index": "npm run test-no-cov -- test/rules/index.js"
119
119
  },
120
- "version": "39.6.1"
120
+ "version": "39.6.3"
121
121
  }