Skip to content

Commit

Permalink
update no-misused-promises to avoid annoying refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianwd committed Nov 7, 2024
1 parent 5441057 commit bb8117a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/short-carrots-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"swd-eslint-config": patch
---

update no-misused-promises rule
7 changes: 6 additions & 1 deletion src/flat-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export const base = tseslint.config({
"@typescript-eslint/no-empty-object-type": "warn",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-misused-promises": "warn",
"@typescript-eslint/no-misused-promises": [
"warn",
{
checksVoidReturn: false,
},
],
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
Expand Down

0 comments on commit bb8117a

Please sign in to comment.