Skip to content

Commit

Permalink
docs(require-description): clarify implicit/explicit description
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jan 20, 2021
1 parent 4fd1cc4 commit 6b5e82d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .README/rules/require-description.md
Expand Up @@ -2,11 +2,12 @@

Requires that all functions have a description.

* All functions must have an implicit description or have the option
`descriptionStyle` set to `tag`.
* Every jsdoc block description (or description tag if `descriptionStyle` is
`"tag"`) must have a non-empty description that explains the purpose of the
method.
* All functions must have an implicit description (e.g., text above tags) or
have the option `descriptionStyle` set to `tag` (requiring `@description`
(or `@desc` if that is set as your preferred tag name)).
* Every jsdoc block description (or `@description` tag if `descriptionStyle`
is `"tag"`) must have a non-empty description that explains the purpose of
the method.

#### Options

Expand Down
11 changes: 6 additions & 5 deletions README.md
Expand Up @@ -8400,11 +8400,12 @@ export default (foo) => {
Requires that all functions have a description.
* All functions must have an implicit description or have the option
`descriptionStyle` set to `tag`.
* Every jsdoc block description (or description tag if `descriptionStyle` is
`"tag"`) must have a non-empty description that explains the purpose of the
method.
* All functions must have an implicit description (e.g., text above tags) or
have the option `descriptionStyle` set to `tag` (requiring `@description`
(or `@desc` if that is set as your preferred tag name)).
* Every jsdoc block description (or `@description` tag if `descriptionStyle`
is `"tag"`) must have a non-empty description that explains the purpose of
the method.
<a name="eslint-plugin-jsdoc-rules-require-description-options-18"></a>
#### Options
Expand Down

0 comments on commit 6b5e82d

Please sign in to comment.