Skip to content

Commit 1400940

Browse files
committed
Avoid passing '--pedantic false' into jsdoc. Fixes #22.
1 parent 9316668 commit 1400940

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

example/explain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ util.inspect.defaultOptions.depth = 6
44
util.inspect.defaultOptions.breakLength = process.stdout.columns
55
util.inspect.defaultOptions.maxArrayLength = Infinity
66

7-
const data = await jsdoc.explain({ files: process.argv.slice(2), cache: true })
7+
const data = await jsdoc.explain({ files: process.argv.slice(2), cache: true, pedantic: true })
88
console.log(data)

lib/jsdoc-command.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ class JsdocCommand {
2626
delete jsdocOptions.source
2727
delete jsdocOptions.cache
2828

29+
/* see: https://github.com/jsdoc2md/jsdoc-api/issues/22 */
30+
if (!jsdocOptions.pedantic) {
31+
delete jsdocOptions.pedantic
32+
}
33+
2934
this.options = options
3035
this.jsdocOptions = jsdocOptions
3136

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"documentation"
2323
],
2424
"engines": {
25-
"node": ">=12.17"
25+
"node": ">=20"
2626
},
2727
"scripts": {
2828
"test": "75lb-nature test-runner test/*.js",

0 commit comments

Comments
 (0)