Skip to content

Commit

Permalink
fix: minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Sep 29, 2022
1 parent 91345d9 commit 078e62b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -38,7 +38,7 @@
## 4.3.0

- https://github.com/eslint-community/eslint-plugin-promise/pull/202
- Udpated jest
- Updated jest

## 4.2.2

Expand Down
4 changes: 2 additions & 2 deletions __tests__/no-promise-in-callback.js
Expand Up @@ -19,8 +19,8 @@ ruleTester.run('no-promise-in-callback', rule, {

// arrow functions and other things
'go(() => Promise.resolve(4))',
'go((errrr) => a.then(b))',
'go((elpers) => { b.catch(c) })',
'go((error) => a.then(b))',
'go((helpers) => { b.catch(c) })',
'go((e) => { b.then(c, d) })',

// within promises it won't complain
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-callback-in-promise.md
Expand Up @@ -53,7 +53,7 @@ Callback got called with: null data
```

Finally, if your callbacks have a Node.js signature (i.e.
`callback(err, data)`), consider using [util.promsify] for promisifying your
`callback(err, data)`), consider using [util.promisify] for promisifying your
callback code instead of combining the approaches.

[util.promisify]:
Expand Down
2 changes: 1 addition & 1 deletion rules/no-native.js
Expand Up @@ -38,7 +38,7 @@ module.exports = {
/**
* Checks for and reports reassigned constants
*
* @param {Scope} scope - an escope Scope object
* @param {Scope} scope - an scope Scope object
* @returns {void}
* @private
*/
Expand Down

0 comments on commit 078e62b

Please sign in to comment.