From 700d97b483f6219cc627b5a78c310273b8dcf04c Mon Sep 17 00:00:00 2001 From: StyleShit Date: Thu, 25 Apr 2024 10:11:50 +0300 Subject: [PATCH] fix: add support for eslint flat config in VSCode --- .gitignore | 1 + .vscode/settings.json | 3 +++ src/signals.ts | 1 + 3 files changed, 5 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index a547bf3..49ef0bd 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ dist-ssr # Editor directories and files .vscode/* !.vscode/extensions.json +!.vscode/settings.json .idea .DS_Store *.suo diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..138e419 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "eslint.experimental.useFlatConfig": true +} diff --git a/src/signals.ts b/src/signals.ts index 64b7520..e934ba4 100644 --- a/src/signals.ts +++ b/src/signals.ts @@ -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 {