Skip to content

Stricter eslint setup #115

Stricter eslint setup

Stricter eslint setup #115

Triggered via pull request December 8, 2024 22:01
Status Success
Total duration 33s
Artifacts

lint.yml

on: pull_request
Run linters
23s
Run linters
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Run linters
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run linters: src/base/fakes/env.fake.mts#L24
Unsafe type assertion: type 'D1PreparedStatement' is more narrow than the original type
Run linters: src/commands/stats/embeds/base-match-embed.mts#L69
Unsafe type assertion: type '{ TeamId: number; Stats: Stats<TCategory>; }' is more narrow than the original type
Run linters: src/commands/stats/stats.mts#L132
Unsafe type assertion: type 'string' is more narrow than the original type
Run linters: src/commands/stats/stats.mts#L133
Unsafe type assertion: type 'number' is more narrow than the original type
Run linters: src/commands/stats/stats.mts#L134
Unsafe type assertion: type 'boolean | undefined' is more narrow than the original type
Run linters: src/commands/stats/stats.mts#L205
Unsafe type assertion: type 'string' is more narrow than the original type
Run linters: src/commands/stats/stats.mts#L206
Unsafe type assertion: type 'boolean | undefined' is more narrow than the original type
Run linters: src/deploy-commands.mts#L13
Unsafe type assertion: type 'Services' is more narrow than the original type
Run linters: src/services/discord/discord.mts#L93
Unsafe cast from `any` detected: consider using type guards or a safer cast
Run linters: src/services/discord/discord.mts#L160
Unsafe type assertion: type 'APIApplicationCommandSubcommandOption | undefined' is more narrow than the original type