Skip to content

Commit 664ff5d

Browse files
committed
style: apply code style
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent dc240ca commit 664ff5d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

eslint.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ export default [
6565
},
6666
{
6767
files: ['examples/node/**/*.{js,mjs,cjs,ts}'],
68+
rules: {
69+
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off'
70+
},
6871
languageOptions: {
6972
globals: globals.node
7073
}

src/_helpers/gitUrl.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export function tryCanonicalizeGitUrl (value: string | undefined): URL | string
3838
/* pass */
3939
}
4040

41-
const sshGs = _sshConnStringRE.exec(value)?.groups as _sshConnStringRE_groups | undefined
41+
/* @ts-expect-error TS2322 */
42+
const sshGs: _sshConnStringRE_groups | undefined = _sshConnStringRE.exec(value)?.groups
4243
if (sshGs !== undefined) {
4344
try {
4445
// utilize URL so needed chars are properly url-encoded

src/models/lifecycle.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ export class LifecycleRepository extends Set<Lifecycle> implements Sortable<Life
4444
static #compareItems (a: Lifecycle, b: Lifecycle): number {
4545
if (a.constructor === b.constructor) {
4646
return a instanceof NamedLifecycle
47+
/* eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- false-positive */
4748
? a.compare(b as NamedLifecycle)
48-
: (a as string).localeCompare(b as string)
49+
/* eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- false-positive */
50+
: a.localeCompare(b as LifecyclePhase)
4951
}
5052
return a.constructor.name.localeCompare(b.constructor.name)
5153
}

0 commit comments

Comments
 (0)