Skip to content

Commit a7f3039

Browse files
committed
fix: updates jsdoc-type-pratt-parser and jsdoccomment to surface "module" as child fix; fixes #806
Also updates devDeps. and updates linting
1 parent f5836d9 commit a7f3039

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"env": {
3+
"node": true,
34
"browser": false
45
},
56
"extends": "canonical",

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20951,6 +20951,15 @@ class quux {}
2095120951
function quux() {
2095220952
}
2095320953
// Settings: {"jsdoc":{"mode":"closure"}}
20954+
20955+
/**
20956+
* @param {string} id
20957+
* @param {Object} options
20958+
* @param {boolean} options.isSet
20959+
* @param {string} options.module
20960+
*/
20961+
function quux ( id, options ) {
20962+
}
2095420963
````
2095520964

2095620965

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"url": "http://gajus.com"
66
},
77
"dependencies": {
8-
"@es-joy/jsdoccomment": "0.13.0",
8+
"@es-joy/jsdoccomment": "0.14.0",
99
"comment-parser": "1.3.0",
1010
"debug": "^4.3.3",
1111
"escape-string-regexp": "^4.0.0",
1212
"esquery": "^1.4.0",
13-
"jsdoc-type-pratt-parser": "^2.0.0",
13+
"jsdoc-type-pratt-parser": "^2.0.1",
1414
"regextras": "^0.8.0",
1515
"semver": "^7.3.5",
1616
"spdx-expression-parse": "^3.0.1"
@@ -26,19 +26,19 @@
2626
"@babel/preset-env": "^7.16.5",
2727
"@babel/register": "^7.16.5",
2828
"@hkdobrev/run-if-changed": "^0.3.1",
29-
"@typescript-eslint/parser": "^5.8.0",
29+
"@typescript-eslint/parser": "^5.8.1",
3030
"babel-plugin-add-module-exports": "^1.0.4",
3131
"babel-plugin-istanbul": "^6.1.1",
3232
"camelcase": "^6.2.1",
3333
"chai": "^4.3.4",
3434
"cross-env": "^7.0.3",
3535
"decamelize": "^5.0.1",
3636
"eslint": "^8.5.0",
37-
"eslint-config-canonical": "^32.49.1",
37+
"eslint-config-canonical": "^33.0.0",
3838
"gitdown": "^3.1.4",
3939
"glob": "^7.2.0",
4040
"husky": "^7.0.4",
41-
"lint-staged": "^12.1.3",
41+
"lint-staged": "^12.1.4",
4242
"lodash.defaultsdeep": "^4.6.1",
4343
"mocha": "^9.1.3",
4444
"nyc": "^15.1.0",

test/rules/assertions/validTypes.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,5 +1392,17 @@ export default {
13921392
},
13931393
},
13941394
},
1395+
{
1396+
code: `
1397+
/**
1398+
* @param {string} id
1399+
* @param {Object} options
1400+
* @param {boolean} options.isSet
1401+
* @param {string} options.module
1402+
*/
1403+
function quux ( id, options ) {
1404+
}
1405+
`,
1406+
},
13951407
],
13961408
};

0 commit comments

Comments
 (0)