lint: fix unused expressions by adding void operator (26 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
This commit is contained in:
parent
e24e935fc4
commit
62263e5785
6 changed files with 6 additions and 6 deletions
|
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
const label = $derived.by(() => {
|
const label = $derived.by(() => {
|
||||||
// Force dependency on refreshKey to trigger re-computation
|
// Force dependency on refreshKey to trigger re-computation
|
||||||
refreshKey
|
void refreshKey
|
||||||
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 'saving':
|
case 'saving':
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ $effect(() => {
|
||||||
|
|
||||||
// Trigger autosave when form data changes
|
// Trigger autosave when form data changes
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
title; slug; status; content; tags; activeTab
|
void title; void slug; void status; void content; void tags; void activeTab
|
||||||
if (hasLoaded && autoSave) {
|
if (hasLoaded && autoSave) {
|
||||||
autoSave.schedule()
|
autoSave.schedule()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ let autoSave = mode === 'edit' && postId
|
||||||
|
|
||||||
// Trigger autosave when form data changes
|
// Trigger autosave when form data changes
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
title; status; content; featuredImage; tags
|
void title; void status; void content; void featuredImage; void tags
|
||||||
if (hasLoaded && autoSave) {
|
if (hasLoaded && autoSave) {
|
||||||
autoSave.schedule()
|
autoSave.schedule()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
// Trigger autosave when formData changes (edit mode)
|
// Trigger autosave when formData changes (edit mode)
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
// Establish dependencies on fields
|
// Establish dependencies on fields
|
||||||
formStore.fields; activeTab
|
void formStore.fields; void activeTab
|
||||||
if (mode === 'edit' && hasLoaded && autoSave) {
|
if (mode === 'edit' && hasLoaded && autoSave) {
|
||||||
autoSave.schedule()
|
autoSave.schedule()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ $effect(() => {
|
||||||
|
|
||||||
// Trigger autosave when form data changes
|
// Trigger autosave when form data changes
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
status; content; linkUrl; linkDescription; title
|
void status; void content; void linkUrl; void linkDescription; void title
|
||||||
if (hasLoaded && autoSave) {
|
if (hasLoaded && autoSave) {
|
||||||
autoSave.schedule()
|
autoSave.schedule()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -378,7 +378,7 @@ onMount(async () => {
|
||||||
// Trigger autosave when form data changes
|
// Trigger autosave when form data changes
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
// Establish dependencies
|
// Establish dependencies
|
||||||
title; slug; status; content; tags; excerpt; postType
|
void title; void slug; void status; void content; void tags; void excerpt; void postType
|
||||||
if (hasLoaded) {
|
if (hasLoaded) {
|
||||||
autoSave.schedule()
|
autoSave.schedule()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue