Fix issue #6444: [Feature]: Limit 'attach image' functionality to specific supported types #19675
lint.yml
on: pull_request
Lint frontend
34s
Lint python
43s
Check version consistency
4s
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
|