Skip to content

Commit

Permalink
build(lint): ignore narrow void promise return check (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko committed Dec 8, 2023
1 parent ce2e33c commit 01fb9cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ module.exports = {
parser: '@typescript-eslint/parser',
project: './tsconfig.dev.json',
tsconfigRootDir: __dirname
},
rules: {
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false
}
]
}
}
],
Expand Down
1 change: 0 additions & 1 deletion src/composables/discussion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const useDiscussion = (subject: Subject): Return => {
})

// fetch discussions if there are any
// eslint-disable-next-line @typescript-eslint/no-misused-promises
watchEffect(async (): Promise<void> => {
const subjectId = (toValue(subject()) as { id: string | undefined }).id
if (subjectId === undefined) return
Expand Down

0 comments on commit 01fb9cd

Please sign in to comment.