Skip to content

Commit

Permalink
fix: #2077
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Dec 18, 2021
1 parent 5885501 commit 93ba917
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config = {
'plugin:node/recommended',
'plugin:import/errors',
'plugin:import/warnings',
// 'plugin:promise/recommended',
'plugin:promise/recommended',
'plugin:prettier/recommended',
],
ignorePatterns: [
Expand Down
6 changes: 1 addition & 5 deletions integration-tests/src/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,7 @@ function asPendingPromise<T>(promise: Promise<T>): PendingPromise<T> {
state: 'pending',
};

// x-eslint-disable-next-line promise/catch-or-return
promise.then(
(v) => ((pp.state = 'resolved'), v),
(r) => ((pp.state = 'rejected'), r)
);
promise.then((v) => ((pp.state = 'resolved'), v)).catch((r) => ((pp.state = 'rejected'), r));

return pp;
}
Expand Down
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"globcat": "^2.0.0",
"jest": "^27.4.5",
"lerna": "^4.0.0",
Expand Down

0 comments on commit 93ba917

Please sign in to comment.