Skip to content

Commit

Permalink
πŸ“ fix wrong eslint configuration comments (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan committed Jun 9, 2020
1 parent fa25cfa commit cd97880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/handle-callback-err.md
Expand Up @@ -22,7 +22,7 @@ The rule takes a single string option: the name of the error parameter. The defa
Examples of **incorrect** code for this rule with the default `"err"` parameter name:

```js
/*eslint handle-callback-err: "error"*/
/*eslint node/handle-callback-err: "error"*/

function loadData (err, data) {
doSomething();
Expand All @@ -33,7 +33,7 @@ function loadData (err, data) {
Examples of **correct** code for this rule with the default `"err"` parameter name:

```js
/*eslint handle-callback-err: "error"*/
/*eslint node/handle-callback-err: "error"*/

function loadData (err, data) {
if (err) {
Expand All @@ -50,7 +50,7 @@ function generateError (err) {
Examples of **correct** code for this rule with a sample `"error"` parameter name:

```js
/*eslint handle-callback-err: ["error", "error"]*/
/*eslint node/handle-callback-err: ["error", "error"]*/

function loadData (error, data) {
if (error) {
Expand Down

0 comments on commit cd97880

Please sign in to comment.