ESLint: Fix problems so linter check passes
This fixes errors caused by turning `@typescript-eslint/ban-ts-comment` on.
This commit is contained in:
parent
d2ea46f243
commit
a7d320e4a8
5 changed files with 16 additions and 19 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue