diff --git a/eslint.config.js b/eslint.config.js index f4ede0fd..77a9be82 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -9,7 +9,7 @@ export default [ { ignores: ['.vercel/', '.svelte-kit/', 'postcss.config.cjs', 'src/lib/components/ui/'] }, js.configs.recommended, ...ts.configs.recommended, - ...svelte.configs['flat/recommended'], + ...svelte.configs['flat/all'], prettier, ...svelte.configs['flat/prettier'], { languageOptions: { globals: { ...globals.browser, ...globals.node } } }, @@ -31,7 +31,15 @@ export default [ ignoreRestSiblings: true } ], - '@svelte/no-at-html-tags': 'off' + 'svelte/no-at-html-tags': 'off', + 'svelte/block-lang': ['error', { script: ['ts'], style: ['postcss'] }], + 'svelte/experimental-require-strict-events': 'off', + 'svelte/no-unused-class-name': 'off', + 'svelte/no-goto-without-base': 'off', + 'svelte/require-each-key': 'off', + 'svelte/no-inline-styles': ['error', { allowTransitions: true }], + 'svelte/prefer-destructured-store-props': 'off', + 'svelte/experimental-require-slot-types': 'off' } } ]; diff --git a/src/lib/components/InfoPopover.svelte b/src/lib/components/InfoPopover.svelte index c228df2e..6c3a3a30 100644 --- a/src/lib/components/InfoPopover.svelte +++ b/src/lib/components/InfoPopover.svelte @@ -13,7 +13,7 @@ - + diff --git a/src/lib/components/ModeToggle.svelte b/src/lib/components/ModeToggle.svelte index fdf5f0b0..88476281 100644 --- a/src/lib/components/ModeToggle.svelte +++ b/src/lib/components/ModeToggle.svelte @@ -27,7 +27,7 @@ - @@ -56,10 +56,10 @@ {:else} - + {#if needTrigger} - @@ -78,7 +78,7 @@ - + diff --git a/src/lib/components/mesocycleAndExerciseSplit/AddEditExerciseDrawer.svelte b/src/lib/components/mesocycleAndExerciseSplit/AddEditExerciseDrawer.svelte index 5c9243f4..cf1b46ed 100644 --- a/src/lib/components/mesocycleAndExerciseSplit/AddEditExerciseDrawer.svelte +++ b/src/lib/components/mesocycleAndExerciseSplit/AddEditExerciseDrawer.svelte @@ -125,28 +125,28 @@ > - + {mode} exercise -
+
Exercise name (searching = true)} + placeholder="Type here or search..." required + bind:value={currentExercise.name} /> {#if searching} @@ -172,15 +172,15 @@ > { currentExercise.targetMuscleGroup = v?.value; if (v?.value !== 'Custom') currentExercise.customMuscleGroup = null; }} required + selected={{ + value: currentExercise.targetMuscleGroup, + label: convertCamelCaseToNormal(currentExercise.targetMuscleGroup) + }} > Target muscle group @@ -190,7 +190,7 @@ {#each Object.values(MuscleGroup) as muscleGroup} - + {/each} @@ -201,8 +201,8 @@
{/if} @@ -212,15 +212,15 @@
Progression - @@ -237,19 +237,19 @@ {/if}
{ currentExercise.bodyweightFraction = c ? undefined : null; }} @@ -260,12 +260,12 @@
(currentExercise.setType = v?.value ?? 'Straight')} + required selected={{ value: currentExercise.setType, label: convertCamelCaseToNormal(currentExercise.setType) }} - onSelectedChange={(v) => (currentExercise.setType = v?.value ?? 'Straight')} - required > Set type @@ -273,7 +273,7 @@ {#each Object.values(SetType) as setTemplate} - + {/each} @@ -282,12 +282,6 @@
{ if ( currentExercise.setType === 'Drop' || @@ -297,6 +291,12 @@ currentExercise.changeType = v?.value ?? 'Percentage'; }} required + selected={{ + value: currentExercise.changeType ?? 'Percentage', + label: currentExercise.changeType + ? convertCamelCaseToNormal(currentExercise.changeType) + : 'Percentage' + }} > Load change type @@ -306,7 +306,7 @@ {#each Object.values(ChangeType) as changeType} - + {/each} @@ -316,9 +316,9 @@
{/if} @@ -327,10 +327,10 @@
@@ -338,22 +338,22 @@