documentationjs / documentationjs/documentation
CLI lint warning bug
- Dominant language
- JavaScript
- Stars
- 5.8k
- Forks
- 481
- PR merge metrics
- No merged PRs in 30d
Description
In `src/test.js`:
```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:
```diff
const foo = {
bar: () => {}
- }
+ };
/** A baz. */
class Baz {}
```
The same thing for class properties:
```diff
/** 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
Contributor guide
Assessment
This issue has not been assessed yet.