Skip to content

Commit

Permalink
chore: update semver, jsdoccomment
Browse files Browse the repository at this point in the history
Also:
- refactor: ts work
- fix(`valid-types`): correct error message sp.
  • Loading branch information
brettz9 committed May 13, 2023
1 parent d26fdf0 commit 6ed61d6
Show file tree
Hide file tree
Showing 45 changed files with 1,716 additions and 564 deletions.
6 changes: 6 additions & 0 deletions docs/rules/no-missing-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ function quux () {
function quux () {}
// "jsdoc/no-missing-syntax": ["error"|"warn", {"contexts":[{"comment":"JsdocBlock:has(JsdocTag[name=/opt_/])","context":"any","message":"Require names matching `/^opt_/i`."}]}]
// Message: Require names matching `/^opt_/i`.

/**
* @implements {Bar|Foo}
*/
// "jsdoc/no-missing-syntax": ["error"|"warn", {"contexts":[{"context":"FunctionDeclaration"}]}]
// Message: Syntax is required: FunctionDeclaration
````


Expand Down
7 changes: 7 additions & 0 deletions docs/rules/require-file-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ function quux () {
*/
// "jsdoc/require-file-overview": ["error"|"warn", {"tags":{"file":{"initialCommentsOnly":true,"preventDuplicates":true}}}]
// Message: Duplicate @file

/**
*
*/
function quux () {}
// Settings: {"jsdoc":{"tagNamePreference":{"file":{"replacement":"fileoverview"}}}}
// Message: Missing @fileoverview
````


Expand Down
2 changes: 1 addition & 1 deletion docs/rules/valid-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ function quux () {}
*/
function quux () {}
// Settings: {"jsdoc":{"mode":"closure"}}
// Message: Syntax error in supresss type: blah
// Message: Syntax error in suppress type: blah

/**
* @param {Object[]} employees
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"url": "http://gajus.com"
},
"dependencies": {
"@es-joy/jsdoccomment": "~0.39.1",
"@es-joy/jsdoccomment": "~0.39.3",
"are-docs-informative": "^0.0.2",
"comment-parser": "1.3.1",
"debug": "^4.3.4",
"escape-string-regexp": "^4.0.0",
"esquery": "^1.5.0",
"semver": "^7.5.0",
"semver": "^7.5.1",
"spdx-expression-parse": "^3.0.1"
},
"description": "JSDoc linting rules for ESLint.",
Expand All @@ -32,10 +32,11 @@
"@types/chai": "^4.3.5",
"@types/debug": "^4.1.7",
"@types/eslint": "^8.37.0",
"@types/esquery": "^1.0.2",
"@types/estree": "^1.0.1",
"@types/lodash.defaultsdeep": "^4.6.7",
"@types/mocha": "^10.0.1",
"@types/node": "^20.1.2",
"@types/node": "^20.1.3",
"@types/semver": "^7.5.0",
"@types/spdx-expression-parse": "^3.0.2",
"@typescript-eslint/parser": "^5.59.5",
Expand Down
Loading

0 comments on commit 6ed61d6

Please sign in to comment.