Skip to content

Commit

Permalink
requireHyphenBeforeDescription: add rule to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Nov 18, 2014
1 parent e317b03 commit 78ceb47
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,43 @@ function _f() {}
function _g() {}
```


### requireHyphenBeforeDescription

Ensures a param description has a hyphen before it (checks for `- `)

Type: `Boolean`

Values: `true`

Context: `functions`

Tags: `param`, `arg`, `argument`

#### Example

```js
"requireHyphenBeforeDescription": true
```

##### Valid

```js
/**
* @param {String} - message
*/
function method() {}
```

##### Invalid

```js
/**
* @param {String} message
*/
function method() {}
```

## Browser Usage

NOT SUPPORTED ATM. SORRY.
Expand Down

0 comments on commit 78ceb47

Please sign in to comment.