File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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
2222Examples 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
2727function loadData (err , data ) {
2828 doSomething ();
@@ -33,7 +33,7 @@ function loadData (err, data) {
3333Examples 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
3838function loadData (err , data ) {
3939 if (err) {
@@ -50,7 +50,7 @@ function generateError (err) {
5050Examples 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
5555function loadData (error , data ) {
5656 if (error) {
You can’t perform that action at this time.
0 commit comments