Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"root": true,
"plugins": ["eslint-plugin-tsdoc"],
"parserOptions": {
"project": ["tsconfig.json"],
"project": ["tsconfig.json"]
},
"extends": ["@scaleway/react/typescript"],
"rules": {
Expand All @@ -17,23 +17,23 @@
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"no-await-in-loop": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-namespace": "off"
},
"overrides": [
{
"files": [
"./packages/clients/src/scw/**/*.ts",
"./packages/clients/src/internal/**/*.ts",
"./packages/clients/src/internal/**/*.ts"
],
"rules": {
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/consistent-type-definitions": "off"
}
},
{
"files": ["**/*.test.ts", "__tests__/**/*.ts", "vite.config.ts"],
"rules": {
"eslint-disable import/no-extraneous-dependencies": "off"
},
},
],
}
}
]
}
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"eslint": "8.56.0",
"eslint-plugin-tsdoc": "0.2.17",
"husky": "9.0.11",
"jsdom": "24.0.0",
"lerna": "7.4.2",
"lint-staged": "15.2.2",
"prettier": "3.2.5",
Expand All @@ -76,8 +77,5 @@
"vite": "5.1.2",
"vitest": "1.2.2"
},
"packageManager": "pnpm@8.15.2",
"dependencies": {
"jsdom": "24.0.0"
}
"packageManager": "pnpm@8.15.2"
}
2 changes: 1 addition & 1 deletion packages/clients/src/internal/async/interval-retrier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Retry<T> = () => Promise<IteratorResult<T, T>>
*
* @internal
*/
type IntervalStrategy = Generator<number, never | number, number>
type IntervalStrategy = Generator<number, number, number>

/**
* Creates a fixed interval strategy.
Expand Down
8 changes: 1 addition & 7 deletions packages/clients/src/internal/interceptors/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,7 @@ export interface ResponseInterceptor {
* @public
*/
export interface ResponseErrorInterceptor {
({
request,
error,
}: {
request: Request
error: unknown
}): unknown | Promise<unknown>
({ request, error }: { request: Request; error: unknown }): unknown
}

/**
Expand Down
7 changes: 2 additions & 5 deletions packages/configuration-loader/src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ export type Profile = {
}

/** Configuration type. */
export type ConfigurationType = Record<
'default' | string,
Record<string, string>
>
export type ConfigurationType = Record<string, Record<string, string>>
/** Parameters to load the all the profiles from the configuration file */
export type AllProfilesFromFileParams = {
/**
Expand All @@ -68,5 +65,5 @@ export type ProfileFromFileParams = AllProfilesFromFileParams & {
*
* @defaultValue `default`
* */
profileName?: 'default' | string
profileName?: string
}
Loading