Thomas G. Lopes commited on
Commit
0a59c60
·
1 Parent(s): 88ea501

fix lint errors

Browse files
eslint.config.mjs CHANGED
@@ -55,7 +55,6 @@ export default [
55
 
56
  parserOptions: {
57
  extraFileExtensions: [".svelte"],
58
- project: "./tsconfig.json",
59
  },
60
  },
61
 
 
55
 
56
  parserOptions: {
57
  extraFileExtensions: [".svelte"],
 
58
  },
59
  },
60
 
package.json CHANGED
@@ -9,7 +9,7 @@
9
  "prepare": "ts-patch install && svelte-kit sync || echo ''",
10
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
11
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12
- "lint": "prettier . --check . && eslint --ext .js,.ts,.svelte src/",
13
  "format": "prettier . --write .",
14
  "clean": "rm -rf ./node_modules/ && rm -rf ./.svelte-kit/ && ni && echo 'Project cleaned!'"
15
  },
 
9
  "prepare": "ts-patch install && svelte-kit sync || echo ''",
10
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
11
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12
+ "lint": "prettier . --check . && eslint src/",
13
  "format": "prettier . --write .",
14
  "clean": "rm -rf ./node_modules/ && rm -rf ./.svelte-kit/ && ni && echo 'Project cleaned!'"
15
  },
src/lib/components/InferencePlayground/InferencePlayground.svelte CHANGED
@@ -316,15 +316,15 @@
316
  <div
317
  class="h-1 w-1 flex-none animate-bounce rounded-full bg-gray-500 dark:bg-gray-100"
318
  style="animation-delay: 0.25s;"
319
- />
320
  <div
321
  class="h-1 w-1 flex-none animate-bounce rounded-full bg-gray-500 dark:bg-gray-100"
322
  style="animation-delay: 0.5s;"
323
- />
324
  <div
325
  class="h-1 w-1 flex-none animate-bounce rounded-full bg-gray-500 dark:bg-gray-100"
326
  style="animation-delay: 0.75s;"
327
- />
328
  </div>
329
  {:else}
330
  Run <span
 
316
  <div
317
  class="h-1 w-1 flex-none animate-bounce rounded-full bg-gray-500 dark:bg-gray-100"
318
  style="animation-delay: 0.25s;"
319
+ ></div>
320
  <div
321
  class="h-1 w-1 flex-none animate-bounce rounded-full bg-gray-500 dark:bg-gray-100"
322
  style="animation-delay: 0.5s;"
323
+ ></div>
324
  <div
325
  class="h-1 w-1 flex-none animate-bounce rounded-full bg-gray-500 dark:bg-gray-100"
326
  style="animation-delay: 0.75s;"
327
+ ></div>
328
  </div>
329
  {:else}
330
  Run <span
src/lib/components/InferencePlayground/InferencePlaygroundHFTokenModal.svelte CHANGED
@@ -32,7 +32,6 @@
32
  });
33
  </script>
34
 
35
- <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
36
  <div
37
  id="default-modal"
38
  aria-hidden="true"
 
32
  });
33
  </script>
34
 
 
35
  <div
36
  id="default-modal"
37
  aria-hidden="true"
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte CHANGED
@@ -4,10 +4,10 @@
4
  import { createEventDispatcher, onMount, tick } from "svelte";
5
 
6
  import { models } from "$lib/stores/models";
7
- import IconSearch from "~icons/carbon/search";
8
- import IconStar from "~icons/carbon/star";
9
  import { getTrending } from "$lib/utils/model";
10
  import fuzzysearch from "$lib/utils/search";
 
 
11
 
12
  export let conversation: Conversation;
13
 
@@ -32,6 +32,8 @@
32
  }
33
  });
34
 
 
 
35
  function handleKeydown(event: KeyboardEvent) {
36
  const { key } = event;
37
  let scrollLogicalPosition: ScrollLogicalPosition = "end";
 
4
  import { createEventDispatcher, onMount, tick } from "svelte";
5
 
6
  import { models } from "$lib/stores/models";
 
 
7
  import { getTrending } from "$lib/utils/model";
8
  import fuzzysearch from "$lib/utils/search";
9
+ import IconSearch from "~icons/carbon/search";
10
+ import IconStar from "~icons/carbon/star";
11
 
12
  export let conversation: Conversation;
13
 
 
32
  }
33
  });
34
 
35
+ type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
36
+
37
  function handleKeydown(event: KeyboardEvent) {
38
  const { key } = event;
39
  let scrollLogicalPosition: ScrollLogicalPosition = "end";
tsconfig.json CHANGED
@@ -19,8 +19,7 @@
19
  "strictNullChecks": true,
20
  "moduleResolution": "bundler"
21
  },
22
- "exclude": ["vite.config.ts"],
23
- "include": ["./eslint.config.mjs"]
24
  // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
25
  //
26
  // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
 
19
  "strictNullChecks": true,
20
  "moduleResolution": "bundler"
21
  },
22
+ "exclude": ["vite.config.ts"]
 
23
  // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
24
  //
25
  // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes