fix lint based on new biome rules after merge

This commit is contained in:
prakash 2026-06-20 02:02:11 +05:30
parent 9f88450929
commit 1d41bcf342
No known key found for this signature in database
4 changed files with 5 additions and 5 deletions

View file

@ -36,7 +36,7 @@
<noscript>You need JavaScript to run this example.</noscript>
<script type="module">
import { Uppy, Dashboard, AwsS3, GoldenRetriever } from './uppy.min.mjs'
import { AwsS3, Dashboard, GoldenRetriever, Uppy } from './uppy.min.mjs'
function onUploadComplete(result) {
console.log('Upload complete!', result.successful)

View file

@ -9,11 +9,9 @@ interface S3MultipartState {
}
declare module '@uppy/utils' {
// biome-ignore lint/correctness/noUnusedVariables: must match existing interface signature
export interface LocalUppyFile<M extends Meta, B extends Body> {
s3Multipart?: S3MultipartState
}
// biome-ignore lint/correctness/noUnusedVariables: must match existing interface signature
export interface RemoteUppyFile<M extends Meta, B extends Body> {
s3Multipart?: S3MultipartState
}

View file

@ -61,7 +61,9 @@ class S3Companion extends S3Client {
await response.json()
const formData = new FormData()
Object.entries(fields).forEach(([key, value]) => formData.set(key, value))
Object.entries(fields).forEach(([key, value]) => {
formData.set(key, value)
})
formData.set('file', data)
const xhr = await this._request({

View file

@ -2,7 +2,7 @@ export const accessKeyId = 'stsuser'
export const secretAccessKey = 'stspassword123'
export function getConfig(env: Record<string, string | undefined>) {
const config = env['VITE_MINIO_CONFIG']
const config = env.VITE_MINIO_CONFIG
if (!config) {
return undefined
}