Skip to content

Commit

Permalink
fix: Do not fail turbo lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Nov 1, 2024
1 parent 12faf40 commit 46f3f63
Show file tree
Hide file tree
Showing 3 changed files with 913 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm lint
run: pnpm lint --continue
14 changes: 2 additions & 12 deletions packages/artisan/src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ import type { AudioCodec, VideoCodec } from "shared/typebox";
// We use the same default bitrates as shaka-streamer, thank you!
// https://github.com/shaka-project/shaka-streamer/blob/20c2704deacb402e39640408ac6157e94a5f78ba/streamer/bitrate_configuration.py

const DEFAULT_AUDIO_BITRATE: Record<
number,
{
[codec in AudioCodec]: number;
}
> = {
const DEFAULT_AUDIO_BITRATE: Record<number, Record<AudioCodec, number>> = {
2: {
aac: 128000,
ac3: 192000,
Expand All @@ -25,12 +20,7 @@ export function getDefaultAudioBitrate(channels: number, codec: AudioCodec) {
return DEFAULT_AUDIO_BITRATE[channels]?.[codec];
}

const DEFAULT_VIDEO_BITRATE: Record<
number,
{
[codec in VideoCodec]: number;
}
> = {
const DEFAULT_VIDEO_BITRATE: Record<number, Record<VideoCodec, number>> = {
144: {
h264: 108000,
hevc: 96000,
Expand Down
Loading

0 comments on commit 46f3f63

Please sign in to comment.