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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eslint-config): enable "no-floating-promises" rule #3219

Merged
merged 2 commits into from Jun 25, 2019

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Jun 24, 2019

See typescript-eslint/typescript-eslint#495 that re-implemented the rule in typescript-eslint.

Checklist

馃憠 Read and sign the CLA (Contributor License Agreement) 馃憟

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

馃憠 Check out how to submit a PR 馃憟

@bajtos bajtos added the Internal Tooling Issues related to our tooling and monorepo infrastructore label Jun 24, 2019
@bajtos bajtos requested a review from raymondfeng June 24, 2019 08:43
@bajtos bajtos self-assigned this Jun 24, 2019
@bajtos bajtos force-pushed the feat/eslint-rule--no-floating-promise branch from b38c696 to 2d372fe Compare June 24, 2019 08:44
@@ -38,7 +38,7 @@ describe('Sequence', () => {
let server: RestServer;
beforeEach(givenAppWithController);
it('provides a default sequence', async () => {
whenIRequest()
await whenIRequest()
Copy link
Member Author

Choose a reason for hiding this comment

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

Here is an example of a problem caught by the new rule.

@@ -63,7 +63,7 @@ describe('Sequence', () => {
// bind user defined sequence
server.sequence(MySequence);

whenIRequest()
await whenIRequest()
Copy link
Member Author

Choose a reason for hiding this comment

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

Another example.

Signed-off-by: Miroslav Bajto拧 <mbajtoss@gmail.com>
Signed-off-by: Miroslav Bajto拧 <mbajtoss@gmail.com>
@bajtos bajtos force-pushed the feat/eslint-rule--no-floating-promise branch from 2d372fe to 00bcbba Compare June 25, 2019 06:43
@bajtos bajtos merged commit 0947531 into master Jun 25, 2019
@delete-merged-branch delete-merged-branch bot deleted the feat/eslint-rule--no-floating-promise branch June 25, 2019 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal Tooling Issues related to our tooling and monorepo infrastructore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants