Skip to content

Commit

Permalink
fix: eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
calimanco committed Mar 17, 2021
1 parent d0e0c8f commit edbfd8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = {
},
rules: {
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'off'
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/processPromise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function processPromise(
try {
const then = callbackResult.then
// 这里可能是另一个异步,回调不会立即被执行,理论上如果一直有 thenable 对象嵌套,则会一直等待下去。
// @ts-expect-error
// @ts-ignore
then.call(
callbackResult,
(y: any) => {
Expand Down

0 comments on commit edbfd8b

Please sign in to comment.