documentationjs / documentationjs/documentation

CLI lint warning bug

Open
#1,092 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.