-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add no-nesting examples #120
docs: add no-nesting examples #120
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing these docs! Conceptually these look good, but could you please double check the invalid code examples to make sure the syntax is correct? I pasted the first example into the Prettier playground and was seeing a SyntaxError
. Once that's resolved, this should be good to merge. 😄
docs/rules/no-nesting.md
Outdated
```js | ||
myPromise | ||
.then((val) => { | ||
doSomething(val)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra parenthesis at the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed and formatted with prettier
docs/rules/no-nesting.md
Outdated
|
||
myPromise | ||
.then((val) => { | ||
doSomething(val)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra parenthesis at the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed and formatted with prettier
docs/rules/no-nesting.md
Outdated
|
||
myPromise | ||
.catch((err) => { | ||
doSomething(err)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra parenthesis at the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed and formatted with prettier
docs/rules/no-nesting.md
Outdated
|
||
myPromise | ||
.catch((err) => { | ||
doSomething(err)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra parenthesis at the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed and formatted with prettier
8a02435
to
9918950
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you for those changes!
This Pull Request updates dependency [eslint-plugin-promise](https://github.com/xjamundx/eslint-plugin-promise) from `v3.7.0` to `v3.8.0` <details> <summary>Release Notes</summary> ### [`v3.8.0`](https://github.com/xjamundx/eslint-plugin-promise/blob/master/CHANGELOG.md#​380) [Compare Source](eslint-community/eslint-plugin-promise@v3.7.0...v3.8.0) * Removed `promise/avoid-new` from recommended configuration ([#​119](`https://github.com/xjamundx/eslint-plugin-promise/pull/119`)) * Ignored event listener callbacks in `promise/prefer-await-to-callbacks` ([#​117](`https://github.com/xjamundx/eslint-plugin-promise/pull/117`)) * Ignored top-level awaits in `promise/prefer-await-to-then` ([#​126](`https://github.com/xjamundx/eslint-plugin-promise/pull/126`)) * Added docs for `promise/no-nesting` and `promise/prefer-await-to-then` ([#​120](`https://github.com/xjamundx/eslint-plugin-promise/pull/120`)) ([#​121](`https://github.com/xjamundx/eslint-plugin-promise/pull/121`)) --- </details> --- This PR has been generated by [Renovate Bot](https://renovatebot.com).
What is the purpose of this pull request?
What changes did you make? (Give an overview)
Added valid and invalid examples to
no-nesting
rule documentation