Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Meierschlumpf committed Oct 31, 2024
1 parent 3ea1183 commit 8525c8e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const RenameGroupForm = ({ group, disabled }: RenameGroupFormProps) => {
},
);
},
[group.id, mutate, t],
[group.id, mutate, t, disabled],
);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ export const PermissionForm = ({ children, initialPermissions }: PropsWithChildr
);
};

type FormType = {
[key in GroupPermissionKey]: boolean;
};
type FormType = Record<GroupPermissionKey, boolean>;

export const PermissionSwitch = ({ name }: { name: GroupPermissionKey }) => {
const form = useFormContext();
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/src/versions/package-reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getPackageAttributesAsync = async () => {
};
};

type PackageJsonDependencies = { [key in string]: string };
type PackageJsonDependencies = Record<string, string>;
interface PackageJson {
dependencies: PackageJsonDependencies | undefined;
}
4 changes: 1 addition & 3 deletions packages/server-settings/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export const defaultServerSettingsKeys = ["analytics", "crawlingAndIndexing"] as const;

export type ServerSettingsRecord = {
[key in (typeof defaultServerSettingsKeys)[number]]: Record<string, unknown>;
};
export type ServerSettingsRecord = Record<(typeof defaultServerSettingsKeys)[number], Record<string, unknown>>;

export const defaultServerSettings = {
analytics: {
Expand Down
4 changes: 1 addition & 3 deletions packages/widgets/src/import.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import type { WidgetKind } from "@homarr/definitions";

export type WidgetImportRecord = {
[K in WidgetKind]: unknown;
};
export type WidgetImportRecord = Record<WidgetKind, unknown>;

0 comments on commit 8525c8e

Please sign in to comment.