Skip to content
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

no-useless-promise-resolve-reject: Fix typo in lint message #1736

Merged
merged 1 commit into from Feb 19, 2022

Conversation

dasa
Copy link
Contributor

@dasa dasa commented Feb 18, 2022

Existing error message: Prefer `return value` over `return Promise.resolve(error)`

This is a little unexpected since it's returning a value rather than an error.

This PR is makes the message read as: Prefer `return value` over `return Promise.resolve(value)`

Change error message to read `Promise.resolve(value)` instead of `Promise.resolve(error)`
@dasa dasa changed the title no-useless-promise-resolve-reject: Change MESSAGE_ID_RESOLVE to be more intuitive no-useless-promise-resolve-reject: Change MESSAGE_ID_RESOLVE to be more intuitive Feb 18, 2022
@sindresorhus sindresorhus changed the title no-useless-promise-resolve-reject: Change MESSAGE_ID_RESOLVE to be more intuitive no-useless-promise-resolve-reject: Fix typo in lint message Feb 19, 2022
@sindresorhus sindresorhus merged commit 9bfde90 into sindresorhus:main Feb 19, 2022
@dasa dasa deleted the patch-1 branch February 21, 2022 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants