File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ The rule takes a single string option: the name of the error parameter. The defa
22
22
Examples of ** incorrect** code for this rule with the default ` "err" ` parameter name:
23
23
24
24
``` js
25
- /* eslint handle-callback-err: "error"*/
25
+ /* eslint node/ handle-callback-err: "error"*/
26
26
27
27
function loadData (err , data ) {
28
28
doSomething ();
@@ -33,7 +33,7 @@ function loadData (err, data) {
33
33
Examples of ** correct** code for this rule with the default ` "err" ` parameter name:
34
34
35
35
``` js
36
- /* eslint handle-callback-err: "error"*/
36
+ /* eslint node/ handle-callback-err: "error"*/
37
37
38
38
function loadData (err , data ) {
39
39
if (err) {
@@ -50,7 +50,7 @@ function generateError (err) {
50
50
Examples of ** correct** code for this rule with a sample ` "error" ` parameter name:
51
51
52
52
``` js
53
- /* eslint handle-callback-err: ["error", "error"]*/
53
+ /* eslint node/ handle-callback-err: ["error", "error"]*/
54
54
55
55
function loadData (error , data ) {
56
56
if (error) {
You can’t perform that action at this time.
0 commit comments