Skip to content

Commit

Permalink
fix: minor typos (#359)
Browse files Browse the repository at this point in the history
* fix: minor typos

* Update rules/no-native.js

Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>

Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
  • Loading branch information
nschonni and ota-meshi committed Sep 29, 2022
1 parent 5fa8a9e commit b431e46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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
2 changes: 1 addition & 1 deletion __tests__/no-promise-in-callback.js
Expand Up @@ -20,7 +20,7 @@ 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((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 eslint-scope Scope object
* @returns {void}
* @private
*/
Expand Down

0 comments on commit b431e46

Please sign in to comment.