Skip to content

Commit 9c253ac

Browse files
chore: fix eslint biome conflicts (#2380)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 282fd41 commit 9c253ac

File tree

15 files changed

+59
-58
lines changed

15 files changed

+59
-58
lines changed

examples/nodejs-minimal/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// Correct imports for Scaleway SDK v2.27.0+
2-
import * as http from 'http'
2+
33
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
44
import { Registry } from '@scaleway/sdk'
55
import { createClient } from '@scaleway/sdk-client'
6+
import * as http from 'http'
67

78
const hostname = '127.0.0.1'
89
const port = 3000

examples/serverless-function-minimal/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { loadProfileFromEnvironmentValues } from '@scaleway/configuration-loader'
2-
import { Errors, Registry, createClient } from '@scaleway/sdk'
2+
import { createClient, Errors, Registry } from '@scaleway/sdk'
33

44
// Profile will be loade from the variables in your `.env` file.
55
const loadedProfile = loadProfileFromEnvironmentValues()

packages/client/src/bridge.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
/** List all helpers required by APIs */
22
export { isJSONObject } from './helpers/json'
3-
export { waitForResource } from './internal/async/interval-retrier'
3+
export {
4+
resolveOneOf,
5+
unmarshalArrayOfObject,
6+
unmarshalDate,
7+
unmarshalMapOfObject,
8+
urlParams,
9+
validatePathParam,
10+
} from './helpers/marshalling'
411
export type { WaitForOptions } from './internal/async/interval-retrier'
12+
export { waitForResource } from './internal/async/interval-retrier'
513
export { API } from './scw/api'
614
export type { DefaultValues } from './scw/client-settings'
7-
export type {
8-
Money,
9-
ServiceInfo,
10-
ScwFile,
11-
TimeSeries,
12-
} from './scw/custom-types'
13-
export { Decimal } from './scw/custom-types'
1415
export {
15-
marshalScwFile,
16+
marshalBlobToScwFile,
17+
marshalDecimal,
1618
marshalMoney,
19+
marshalScwFile,
1720
marshalTimeSeries,
18-
marshalDecimal,
19-
marshalBlobToScwFile,
21+
unmarshalDecimal,
2022
unmarshalMoney,
2123
unmarshalScwFile,
2224
unmarshalServiceInfo,
2325
unmarshalTimeSeries,
2426
unmarshalTimeSeriesPoint,
25-
unmarshalDecimal,
2627
} from './scw/custom-marshalling'
28+
export type {
29+
Money,
30+
ScwFile,
31+
ServiceInfo,
32+
TimeSeries,
33+
} from './scw/custom-types'
34+
export { Decimal } from './scw/custom-types'
2735
export { enrichForPagination } from './scw/fetch/resource-paginator'
2836
export type { Region, Zone } from './scw/locality'
29-
export {
30-
resolveOneOf,
31-
unmarshalDate,
32-
unmarshalArrayOfObject,
33-
unmarshalMapOfObject,
34-
urlParams,
35-
validatePathParam,
36-
} from './helpers/marshalling'

packages/client/src/index.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ export type {
55
export type {
66
NetworkInterceptors,
77
RequestInterceptor,
8-
ResponseInterceptor,
98
ResponseErrorInterceptor,
9+
ResponseInterceptor,
1010
} from './internal/interceptors/types'
1111
export { enableConsoleLogger, setLogger } from './internal/logger'
1212
export type { Logger } from './internal/logger/logger'
13-
export { createClient, createAdvancedClient } from './scw/client'
14-
export { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from './scw/constants'
13+
export * from './internals'
1514
export type { Client } from './scw/client'
16-
export type { Profile } from './scw/client-ini-profile'
17-
export type { Settings } from './scw/client-settings'
15+
export { createAdvancedClient, createClient } from './scw/client'
16+
export type { ClientConfig } from './scw/client-ini-factory'
1817
export {
1918
withAdditionalInterceptors,
2019
withDefaultPageSize,
@@ -23,11 +22,11 @@ export {
2322
withUserAgent,
2423
withUserAgentSuffix,
2524
} from './scw/client-ini-factory'
26-
export type { ClientConfig } from './scw/client-ini-factory'
27-
export { Decimal } from './scw/custom-types'
25+
export type { Profile } from './scw/client-ini-profile'
26+
export type { Settings } from './scw/client-settings'
27+
export { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from './scw/constants'
2828
export type { Money, ScwFile, TimeSeries } from './scw/custom-types'
29+
export { Decimal } from './scw/custom-types'
2930
export * as Errors from './scw/errors/standard'
30-
export type { Region, Zone } from './scw/locality'
31-
export * from './internals'
31+
export type { ApiLocality, Region, Zone } from './scw/locality'
3232
export { toApiLocality } from './scw/locality'
33-
export type { ApiLocality } from './scw/locality'

packages/client/src/internal/logger/console-logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { LevelResolver, shouldLog } from './level-resolver'
21
import type { LogLevel } from './level-resolver'
2+
import { LevelResolver, shouldLog } from './level-resolver'
33
import type { Logger } from './logger'
44

55
/**

packages/client/src/internals.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
export { isJSONObject } from './helpers/json'
2+
export {
3+
resolveOneOf,
4+
unmarshalArrayOfObject,
5+
unmarshalDate,
6+
unmarshalMapOfObject,
7+
urlParams,
8+
validatePathParam,
9+
} from './helpers/marshalling'
210
export {
311
createExponentialBackoffStrategy,
412
tryAtIntervals,
513
waitForResource,
614
} from './internal/async/interval-retrier'
715
export { addAsyncHeaderInterceptor } from './internal/interceptors/helpers'
816
export { API } from './scw/api'
9-
1017
export { authenticateWithSessionToken } from './scw/auth'
11-
1218
export type { DefaultValues } from './scw/client-settings'
1319
export {
1420
marshalBlobToScwFile,
@@ -25,12 +31,4 @@ export {
2531
unmarshalTimeSeriesPoint,
2632
} from './scw/custom-marshalling'
2733
export type { ServiceInfo } from './scw/custom-types'
28-
export {
29-
resolveOneOf,
30-
unmarshalDate,
31-
unmarshalArrayOfObject,
32-
unmarshalMapOfObject,
33-
urlParams,
34-
validatePathParam,
35-
} from './helpers/marshalling'
3634
export { enrichForPagination } from './scw/fetch/resource-paginator'

packages/client/src/scw/__tests__/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, expect, it } from 'vitest'
22
import { createAdvancedClient, createClient } from '../client'
3-
import { withProfile } from '../client-ini-factory'
43
import type { ClientConfig } from '../client-ini-factory'
4+
import { withProfile } from '../client-ini-factory'
55
import type { Settings } from '../client-settings'
66

77
const withApiURL =

packages/client/src/scw/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {
33
addHeaderInterceptor,
44
} from '../internal/interceptors/helpers'
55
import type { RequestInterceptor } from '../internal/interceptors/types'
6-
import { assertValidAuthenticationSecrets } from './client-ini-profile'
76
import type { AuthenticationSecrets } from './client-ini-profile'
7+
import { assertValidAuthenticationSecrets } from './client-ini-profile'
88
import { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from './constants'
99

1010
interface TokenAccessor {

packages/client/src/scw/client-ini-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NetworkInterceptors } from '../index'
22
import { authenticateWithSecrets } from './auth'
3-
import { hasAuthenticationSecrets } from './client-ini-profile'
43
import type { Profile } from './client-ini-profile'
4+
import { hasAuthenticationSecrets } from './client-ini-profile'
55
import type { Settings } from './client-settings'
66

77
/**

packages/client/src/scw/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
import type { Settings } from './client-settings'
99
import { assertValidSettings } from './client-settings'
1010
import { userAgent, version } from './constants'
11-
import { buildFetcher } from './fetch/build-fetcher'
1211
import type { Fetcher } from './fetch/build-fetcher'
12+
import { buildFetcher } from './fetch/build-fetcher'
1313

1414
/** Default {@link Settings} values. */
1515
const DEFAULT_SETTINGS: Settings = {

0 commit comments

Comments
 (0)