Skip to content

Commit

Permalink
fix: add support for eslint flat config in VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleShit committed Apr 25, 2024
1 parent 61d5ddc commit 700d97b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dist-ssr
# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
.DS_Store
*.suo
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.experimental.useFlatConfig": true
}
1 change: 1 addition & 0 deletions src/signals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function createEffect(cb: EffectCallback) {

try {
cb();
// eslint-disable-next-line no-useless-catch -- Intentionally rethrowing the error
} catch (e) {
throw e;
} finally {
Expand Down

0 comments on commit 700d97b

Please # to comment.