ESLint: Fix problems so linter check passes

This fixes errors caused by turning `@typescript-eslint/ban-ts-comment` on.
This commit is contained in:
regexowl 2024-03-14 11:25:03 +01:00 committed by Klara Simickova
parent d2ea46f243
commit a7d320e4a8
5 changed files with 16 additions and 19 deletions

View file

@ -15,12 +15,15 @@ type repoPropType = {
};
const RepoName = ({ repoUrl }: repoPropType) => {
const { data, isSuccess, isFetching, isError } = useListRepositoriesQuery({
// @ts-ignore
url: repoUrl,
contentType: 'rpm',
origin: 'external',
});
const { data, isSuccess, isFetching, isError } = useListRepositoriesQuery(
{
// @ts-ignore if repoUrl is undefined the query is going to get skipped, so it's safe to ignore the linter here
url: repoUrl,
contentType: 'rpm',
origin: 'external',
},
{ skip: !repoUrl }
);
const errorLoading = () => {
return (

View file

@ -516,7 +516,7 @@ export const RegisterNowList = () => {
})();
});
const { isError } = useShowActivationKeyQuery(
// @ts-ignore - type of 'activationKey' might not be strictly compatible with the expected type for 'name'.
// @ts-ignore type of 'activationKey' might not be strictly compatible with the expected type for 'name'.
{ name: activationKey },
{
skip: !activationKey,

View file

@ -24,8 +24,7 @@ export const AzureResourceGroups = () => {
const [isOpen, setIsOpen] = useState(false);
const { data: sourceDetails, isFetching } = useGetSourceUploadInfoQuery(
// @ts-ignore
{ id: azureSource },
{ id: parseInt(azureSource as string) },
{
skip: !azureSource,
}