Skip to content

Commit

Permalink
Enforce strict adherence to Node.js callback pattern
Browse files Browse the repository at this point in the history
Fixes: standard/standard#623

There must be `undefined`, `null` or an error object in the first
position of a callback.
  • Loading branch information
feross committed Mar 2, 2017
1 parent 489851b commit 5071ba1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eslintrc.json
Expand Up @@ -181,8 +181,9 @@

"promise/param-names": "error",

"standard/object-curly-even-spacing": ["error", "either"],
"standard/array-bracket-even-spacing": ["error", "either"],
"standard/computed-property-even-spacing": ["error", "even"]
"standard/computed-property-even-spacing": ["error", "even"],
"standard/no-callback-literal": "error",
"standard/object-curly-even-spacing": ["error", "either"]
}
}

0 comments on commit 5071ba1

Please sign in to comment.