Skip to content

Commit

Permalink
fix: updates jsdoc-type-pratt-parser and jsdoccomment to surface "mod…
Browse files Browse the repository at this point in the history
…ule" as child fix; fixes #806

Also updates devDeps. and updates linting
  • Loading branch information
brettz9 committed Dec 28, 2021
1 parent f5836d9 commit a7f3039
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"env": {
"node": true,
"browser": false
},
"extends": "canonical",
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20951,6 +20951,15 @@ class quux {}
function quux() {
}
// Settings: {"jsdoc":{"mode":"closure"}}

/**
* @param {string} id
* @param {Object} options
* @param {boolean} options.isSet
* @param {string} options.module
*/
function quux ( id, options ) {
}
````


10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"url": "http://gajus.com"
},
"dependencies": {
"@es-joy/jsdoccomment": "0.13.0",
"@es-joy/jsdoccomment": "0.14.0",
"comment-parser": "1.3.0",
"debug": "^4.3.3",
"escape-string-regexp": "^4.0.0",
"esquery": "^1.4.0",
"jsdoc-type-pratt-parser": "^2.0.0",
"jsdoc-type-pratt-parser": "^2.0.1",
"regextras": "^0.8.0",
"semver": "^7.3.5",
"spdx-expression-parse": "^3.0.1"
Expand All @@ -26,19 +26,19 @@
"@babel/preset-env": "^7.16.5",
"@babel/register": "^7.16.5",
"@hkdobrev/run-if-changed": "^0.3.1",
"@typescript-eslint/parser": "^5.8.0",
"@typescript-eslint/parser": "^5.8.1",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-istanbul": "^6.1.1",
"camelcase": "^6.2.1",
"chai": "^4.3.4",
"cross-env": "^7.0.3",
"decamelize": "^5.0.1",
"eslint": "^8.5.0",
"eslint-config-canonical": "^32.49.1",
"eslint-config-canonical": "^33.0.0",
"gitdown": "^3.1.4",
"glob": "^7.2.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.3",
"lint-staged": "^12.1.4",
"lodash.defaultsdeep": "^4.6.1",
"mocha": "^9.1.3",
"nyc": "^15.1.0",
Expand Down
12 changes: 12 additions & 0 deletions test/rules/assertions/validTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1392,5 +1392,17 @@ export default {
},
},
},
{
code: `
/**
* @param {string} id
* @param {Object} options
* @param {boolean} options.isSet
* @param {string} options.module
*/
function quux ( id, options ) {
}
`,
},
],
};

0 comments on commit a7f3039

Please sign in to comment.