Skip to content

Add Biome linter/formatter#27

Merged
vladavoX merged 1 commit intomainfrom
add-biome
Dec 10, 2025
Merged

Add Biome linter/formatter#27
vladavoX merged 1 commit intomainfrom
add-biome

Conversation

@vladavoX
Copy link
Copy Markdown
Contributor

@vladavoX vladavoX commented Dec 9, 2025

No description provided.

Comment thread .github/workflows/ci.yml
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is changed

Comment thread src/sdk/index.ts
client: AxiosInstance
) {
return (...args: Parameters<T>) => fn(client, ...args);
function withClient<A extends unknown[], R>(fn: (client: AxiosInstance, ...args: A) => R, client: AxiosInstance) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is changed

parametrization: { value: string; mandatory: boolean };
} => {
return layer.parametrization != null && layer.parametrization.expression;
return !!layer.parametrization?.expression;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is changed

Comment thread src/sdk/types.ts
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here, bunch of any -> unknown. unknown is always better, because it doesn't allow you to use something random, for example:

some.random <--- this will give error if some: unknown
some.random <--- this will be ignored if some: any

state: render.state,
});
} catch (err: any) {
} catch (err: unknown) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is changed, and below

Comment thread src/tools/renderItem.ts
templateVariantName: render.templateName,
});
} catch (err: any) {
} catch (err: unknown) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is changed, and below on line 137

Comment thread src/utils/toolResponse.ts
}
};

export const normalizeError = (err: unknown): { message: string; details?: unknown } => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added, used in renderItem line 137

@vladavoX vladavoX requested a review from danixeee December 9, 2025 15:49
Copy link
Copy Markdown
Contributor

@danixeee danixeee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

@vladavoX vladavoX merged commit 5c2be59 into main Dec 10, 2025
2 checks passed
@vladavoX vladavoX deleted the add-biome branch December 10, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants