documentation
documentation copied to clipboard
CLI lint warning bug
In src/test.js:
const foo = {
bar: () => {}
}
/** A baz. */
class Baz {}
Running documentation lint src results in this warning:
5:1 warning could not determine @name for hierarchy
The warning goes away if you add a semicolon:
const foo = {
bar: () => {}
- }
+ };
/** A baz. */
class Baz {}
The same thing for class properties:
/** An A. */
class A {
b = {
c: ''
- }
+ };
/** Does d. */
d() { }
}
- What version of documentation.js are you using?: v8.0.0
- How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): CLI
This bug can also create these warnings:
warning @memberof reference to A not found
Looks like a similar issue to https://github.com/documentationjs/documentation/issues/795.