Skip to content

Fix issue #6444: [Feature]: Limit 'attach image' functionality to specific supported types #19675

Fix issue #6444: [Feature]: Limit 'attach image' functionality to specific supported types

Fix issue #6444: [Feature]: Limit 'attach image' functionality to specific supported types #19675

Triggered via pull request January 24, 2025 13:34
Status Failure
Total duration 53s
Artifacts

lint.yml

on: pull_request
Lint frontend
34s
Lint frontend
Lint python
43s
Lint python
Check version consistency
4s
Check version consistency
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 3 warnings
Lint frontend: frontend/src/utils/validate-image-type.ts#L1
Replace `'image/jpeg',·'image/png',·'image/gif',·'image/webp'` with `⏎··"image/jpeg",⏎··"image/png",⏎··"image/gif",⏎··"image/webp",⏎`
Lint frontend: frontend/src/utils/validate-image-type.ts#L4
Replace `file.type·as·typeof·SUPPORTED_IMAGE_TYPES[number]` with `⏎····file.type·as·(typeof·SUPPORTED_IMAGE_TYPES)[number],⏎··`
Lint frontend: frontend/src/utils/validate-image-type.ts#L7
Replace `·validFiles:·File[];·invalidFiles:·File[]·` with `⏎··validFiles:·File[];⏎··invalidFiles:·File[];⏎`
Lint frontend
Process completed with exit code 1.
Check version consistency
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint frontend
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint python
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636