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

refactor: enable and fix promise rules #2007

Merged
merged 1 commit into from
Mar 22, 2021
Merged

Conversation

erezrokah
Copy link
Contributor

@erezrokah erezrokah commented Mar 16, 2021

Related to #1891

It seems prefer-await-to-callbacks relies too much on argument names.

@erezrokah erezrokah requested a review from a team as a code owner March 16, 2021 11:20
@@ -2,16 +2,16 @@ const middy = require('middy')
const { jsonBodyParser, validator, httpErrorHandler, httpHeaderNormalizer } = require('middy/middlewares')

/* Normal lambda code */
const businessLogic = (event, context, callback) => {
const businessLogic = async (event) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -65,6 +65,7 @@ const startServer = async ({ cwd, env = {}, args = [] }) => {
})
}
})
// eslint-disable-next-line promise/prefer-await-to-callbacks
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to handle this error.

@erezrokah erezrokah added the type: chore work needed to keep the product and development running smoothly label Mar 16, 2021
@erezrokah erezrokah enabled auto-merge (squash) March 17, 2021 10:00
@erezrokah erezrokah requested review from eduardoboucas and removed request for eduardoboucas March 22, 2021 10:46
@erezrokah erezrokah merged commit f95f0a5 into master Mar 22, 2021
@erezrokah erezrokah deleted the refactor/promise_rules branch March 22, 2021 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants