Skip to content

Commit c5d63dc

Browse files
committed
Turn off @typescript-eslint/no-redundant-type-constituents
1 parent fe8f970 commit c5d63dc

22 files changed

Lines changed: 5 additions & 27 deletions

frontend/eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ export default [
3838
files: ['**/*.svelte'],
3939
rules: {
4040
// The Svelte plugin doesn't seem to have typing quite figured out
41+
'@typescript-eslint/no-redundant-type-constituents': 'off',
42+
'@typescript-eslint/no-unsafe-argument': 'off',
4143
'@typescript-eslint/no-unsafe-assignment': 'off',
42-
'@typescript-eslint/no-unsafe-member-access': 'off',
4344
'@typescript-eslint/no-unsafe-call': 'off',
45+
'@typescript-eslint/no-unsafe-member-access': 'off',
4446
'@typescript-eslint/no-unsafe-return': 'off',
45-
'@typescript-eslint/no-unsafe-argument': 'off',
4647
},
4748
},
4849
...svelte.configs.recommended,

frontend/src/lib/components/FilterBar/FilterBar.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import { DEFAULT_DEBOUNCE_TIME } from '$lib/util/time';
2323
2424
type DumbFilters = $$Generic<Record<string, unknown>>;
25-
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
2625
type Filters = DumbFilters & Record<typeof searchKey, string>;
2726
2827
let searchInput: PlainInput | undefined = $state();

frontend/src/lib/components/Projects/ProjectConfidentialityFilterSelect.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import type { Confidentiality } from './ProjectFilter.svelte';
77
88
interface Props extends Omit<SelectProps, 'label'> {
9-
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- false positive
109
value: Confidentiality | undefined;
1110
}
1211

frontend/src/lib/components/modals/ConfirmDeleteModal.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
4242
type Schema = typeof verify;
4343
44-
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
4544
let deletionFormModal: FormModal<Schema> | undefined = $state();
4645
let deletionForm = $derived(deletionFormModal?.form());
4746
</script>

frontend/src/lib/components/modals/FormModal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@
5858
let done = $state(false);
5959
6060
export async function open(
61-
value: Partial<FormType> | undefined, //eslint-disable-line @typescript-eslint/no-redundant-type-constituents
61+
value: Partial<FormType> | undefined,
6262
onSubmit: SubmitCallback,
6363
): Promise<FormModalResult<Schema>>;
6464
export async function open(onSubmit: SubmitCallback): Promise<FormModalResult<Schema>>;
6565
export async function open(
66-
valueOrOnSubmit: Partial<FormType> | SubmitCallback | undefined, //eslint-disable-line @typescript-eslint/no-redundant-type-constituents
66+
valueOrOnSubmit: Partial<FormType> | SubmitCallback | undefined,
6767
_onSubmit?: SubmitCallback,
6868
): Promise<FormModalResult<Schema>> {
6969
done = false;

frontend/src/routes/(authenticated)/admin/+page.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
showDeletedProjects: queryParam.boolean<boolean>(false),
4242
hideDraftProjects: queryParam.boolean<boolean>(false),
4343
emptyProjects: queryParam.boolean<boolean>(false),
44-
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- false positive?
4544
confidential: queryParam.string<Confidentiality | undefined>(undefined),
4645
projectType: queryParam.string<ProjectType | undefined>(undefined),
4746
memberSearch: queryParam.string(undefined),

frontend/src/routes/(authenticated)/admin/EditUserAccount.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
4040
type Schema = typeof schema;
4141
type RefinedSchema = typeof refinedSchema;
42-
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
4342
let formModal: FormModal<RefinedSchema> | undefined = $state();
4443
4544
export function close(): void {

frontend/src/routes/(authenticated)/org/[org_id]/AddMyProjectsToOrgModal.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
2222
const schema = z.object({});
2323
24-
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
2524
let formModal: FormModal<typeof schema> | undefined = $state();
2625
let newProjects: Project[] = $state([]);
2726
let alreadyAddedProjects: number = $state(0);

frontend/src/routes/(authenticated)/org/[org_id]/AddOrgMemberModal.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
role: z.enum([OrgRole.User, OrgRole.Admin]).default(OrgRole.User),
2929
canInvite: z.boolean().default(false),
3030
});
31-
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
3231
let formModal: FormModal<typeof schema> | undefined = $state();
3332
let form = $derived(formModal?.form());
3433

frontend/src/routes/(authenticated)/org/[org_id]/BulkAddOrgMembers.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
usernamesText: z.string().trim().min(1, $t('org_page.bulk_add_members.empty_user_field')),
3232
});
3333
34-
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
3534
let formModal: FormModal<typeof schema> | undefined = $state();
3635
let form = $derived(formModal?.form());
3736

0 commit comments

Comments
 (0)