Skip to content

Commit cd97880

Browse files
authored
📝 fix wrong eslint configuration comments (#231)
1 parent fa25cfa commit cd97880

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules/handle-callback-err.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The rule takes a single string option: the name of the error parameter. The defa
2222
Examples of **incorrect** code for this rule with the default `"err"` parameter name:
2323

2424
```js
25-
/*eslint handle-callback-err: "error"*/
25+
/*eslint node/handle-callback-err: "error"*/
2626

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

3535
```js
36-
/*eslint handle-callback-err: "error"*/
36+
/*eslint node/handle-callback-err: "error"*/
3737

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

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

5555
function loadData (error, data) {
5656
if (error) {

0 commit comments

Comments
 (0)