Skip to content

Commit db68b89

Browse files
committed
style: error on unused locals and params
1 parent c2617fe commit db68b89

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

apps/client/src/components/chat/ChatApp.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
2-
import { api, type Id } from "@apps/convex";
3-
import { useQuery } from "convex-svelte";
2+
import { type Id } from "@apps/convex";
43
import Channel from "./Channel.svelte";
54
import ChannelList from "./ChannelList.svelte";
65

packages/markdown/src/lib/EditorCore.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
import { EditorState, StateEffect } from "@codemirror/state";
3-
import { oneDark } from "@codemirror/theme-one-dark";
43
import { Watcher } from "@packages/utils";
54
import { EditorView } from "codemirror";
65
import { getTheme } from "./extensions/themes.ts";

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
"skipLibCheck": true,
1919
"noFallthroughCasesInSwitch": true,
2020
"noUncheckedIndexedAccess": true,
21-
"noImplicitOverride": true
21+
"noImplicitOverride": true,
22+
23+
// style
24+
"noUnusedLocals": true,
25+
"noUnusedParameters": true
2226
}
2327
}

0 commit comments

Comments
 (0)