Skip to content

Commit

Permalink
Fix docs example
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed May 4, 2020
1 parent 6f7480b commit 72af77e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-useless-undefined.md
Expand Up @@ -69,7 +69,7 @@ function* foo() {
```

```js
function foo(bar = undefined) {
function foo(bar) {
}
```

Expand Down
1 change: 1 addition & 0 deletions rules/no-useless-undefined.js
Expand Up @@ -95,6 +95,7 @@ module.exports = {
url: getDocumentationUrl(__filename)
},
messages: {
// [TBD]: better message
[messageId]: '`undefined` is useless.'
},
fixable: 'code'
Expand Down

0 comments on commit 72af77e

Please sign in to comment.