-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
chore: add typescript-eslint/require-await rule #9029
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
base: main
Are you sure you want to change the base?
chore: add typescript-eslint/require-await rule #9029
Conversation
View your CI Pipeline Execution ↗ for commit 9ad919a.
☁️ Nx Cloud last updated this comment at |
eslint.config.js
Outdated
@@ -48,6 +48,7 @@ export default [ | |||
rules: { | |||
...vitest.configs.recommended.rules, | |||
'vitest/expect-expect': 'warn', | |||
'@typescript-eslint/require-await': 'error', |
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.
can we enable this for all files, not just tests ?
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.
Ok I'll fix it😊
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.
@TkDodo I would like to ask your opinion on what you think is the best way to solve this problem. 🙏🏻
https://cloud.nx.app/runs/nfo7DWRJqC

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.
And I think we can decide whether to merge this PR after #9039
becomes a review first. There was something I missed in the task of removing unnecessary async.
a923146
to
390a5cb
Compare
390a5cb
to
9ad919a
Compare
ref: #9011 (comment)