@@ -226,7 +226,7 @@ interface RemoteBackendPostOptions {
226
226
}
227
227
228
228
/** Class for sending requests to the Cloud backend API endpoints. */
229
- export default class RemoteBackend extends Backend {
229
+ export class RemoteBackend extends Backend {
230
230
readonly type = BackendType . remote
231
231
private user : Mutable < User > | null = null
232
232
@@ -268,7 +268,6 @@ export default class RemoteBackend extends Backend {
268
268
response == null || response . headers . get ( 'Content-Type' ) !== 'application/json' ?
269
269
{ message : 'unknown error' }
270
270
// This is SAFE only when the response has been confirmed to have an erroring status code.
271
- // eslint-disable-next-line no-restricted-syntax
272
271
: ( ( await response . json ( ) ) as RemoteBackendError )
273
272
const message = `${ this . getText ( textId , ...replacements ) } : ${ error . message } .`
274
273
this . logger . error ( message )
@@ -436,7 +435,7 @@ export default class RemoteBackend extends Backend {
436
435
/** Upload a new profile picture for the current user. */
437
436
override async uploadUserPicture ( params : UploadPictureRequestParams , file : Blob ) : Promise < User > {
438
437
const paramsString = new URLSearchParams ( {
439
- // eslint-disable-next-line @typescript-eslint/naming-convention, camelcase
438
+ // eslint-disable-next-line camelcase
440
439
...( params . fileName != null ? { file_name : params . fileName } : { } ) ,
441
440
} ) . toString ( )
442
441
const path = `${ UPLOAD_USER_PICTURE_PATH } ?${ paramsString } `
@@ -504,7 +503,7 @@ export default class RemoteBackend extends Backend {
504
503
file : Blob ,
505
504
) : Promise < OrganizationInfo > {
506
505
const paramsString = new URLSearchParams ( {
507
- // eslint-disable-next-line @typescript-eslint/naming-convention, camelcase
506
+ // eslint-disable-next-line camelcase
508
507
...( params . fileName != null ? { file_name : params . fileName } : { } ) ,
509
508
} ) . toString ( )
510
509
const path = `${ UPLOAD_ORGANIZATION_PICTURE_PATH } ?${ paramsString } `
@@ -594,7 +593,6 @@ export default class RemoteBackend extends Backend {
594
593
const ret = ( await response . json ( ) ) . assets
595
594
. map ( ( asset ) =>
596
595
merge ( asset , {
597
- // eslint-disable-next-line no-restricted-syntax
598
596
type : asset . id . match ( / ^ ( .+ ?) - / ) ?. [ 1 ] as AssetType ,
599
597
// `Users` and `Teams` folders are virtual, so their children incorrectly have
600
598
// the organization root id as their parent id.
0 commit comments