Skip to content

Commit 09921cf

Browse files
authored
chore: bump eslint to 10.x (#1375)
* chore: bump eslint to 10.x Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com> * fix: pnpm-lock.yaml Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com> --------- Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
1 parent d947329 commit 09921cf

4 files changed

Lines changed: 222 additions & 171 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@
4646
"@vitest/eslint-plugin": "^1.6.14",
4747
"autoprefixer": "^10.4.27",
4848
"concurrently": "^9.2.1",
49-
"eslint": "^9.39.2",
49+
"eslint": "^10.1.0",
50+
"@eslint/js": "^10.0.1",
5051
"@eslint/compat": "^2.0.4",
52+
"@eslint/eslintrc": "^3.3.5",
5153
"eslint-import-resolver-custom-alias": "^1.3.2",
5254
"eslint-import-resolver-typescript": "^4.4.4",
5355
"eslint-plugin-etc": "^2.0.3",

packages/backend/src/apis/quadlet-api-impl.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export class QuadletApiImpl extends QuadletApi {
5555
quadlet = this.checkQuadlet(id);
5656
} catch (error) {
5757
if (error instanceof Error) {
58-
throw new Error(`cannot start quadlet: ${error.message}`);
58+
throw new Error(`cannot start quadlet: ${error.message}`, {
59+
cause: error,
60+
});
5961
}
6062
throw error;
6163
}
@@ -80,7 +82,9 @@ export class QuadletApiImpl extends QuadletApi {
8082
quadlet = this.checkQuadlet(id);
8183
} catch (error) {
8284
if (error instanceof Error) {
83-
throw new Error(`cannot stop quadlet: ${error.message}`);
85+
throw new Error(`cannot stop quadlet: ${error.message}`, {
86+
cause: error,
87+
});
8488
}
8589
throw error;
8690
}
@@ -105,7 +109,9 @@ export class QuadletApiImpl extends QuadletApi {
105109
quadlet = this.checkQuadlet(id);
106110
} catch (error) {
107111
if (error instanceof Error) {
108-
throw new Error(`cannot restart quadlet: ${error.message}`);
112+
throw new Error(`cannot restart quadlet: ${error.message}`, {
113+
cause: error,
114+
});
109115
}
110116
throw error;
111117
}
@@ -157,7 +163,9 @@ export class QuadletApiImpl extends QuadletApi {
157163
quadlet = this.checkQuadlet(options.quadletId);
158164
} catch (error) {
159165
if (error instanceof Error) {
160-
throw new Error(`cannot create quadlet logger: ${error.message}`);
166+
throw new Error(`cannot create quadlet logger: ${error.message}`, {
167+
cause: error,
168+
});
161169
}
162170
throw error;
163171
}

packages/frontend/src/lib/empty-screen/EmptyQuadletList.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ let { connection, loading, disabled, refreshQuadlets }: Props = $props();
1717
1818
let runningConnection: number = $derived(
1919
$providerConnectionsInfo.reduce((accumulator, connection) => {
20-
if (connection.status === 'started') return ++accumulator;
20+
if (connection.status === 'started') {
21+
accumulator++;
22+
}
2123
return accumulator;
2224
}, 0),
2325
);

0 commit comments

Comments
 (0)