chore: fix linter

prod
Steven 4 months ago
parent 0fc3497a5b
commit f98a61ba94

@ -39,7 +39,7 @@
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1", "eslint-plugin-react": "^7.34.1",
"long": "^5.2.3", "long": "^5.2.3",
"postcss": "^8.4.38", "postcss": "^8.4.38",

File diff suppressed because it is too large Load Diff

@ -17,7 +17,7 @@ chrome.webRequest.onBeforeRequest.addListener(
} }
})(); })();
}, },
{ urls: ["*://s/*", "*://*/search*"] } { urls: ["*://s/*", "*://*/search*"] },
); );
const getShortcutNameFromUrl = (urlString: string) => { const getShortcutNameFromUrl = (urlString: string) => {

@ -109,7 +109,7 @@ const CreateShortcutButton = () => {
link: state.link, link: state.link,
tags, tags,
visibility: context.defaultVisibility as Visibility, visibility: context.defaultVisibility as Visibility,
}) }),
); );
toast.success("Shortcut created successfully"); toast.success("Shortcut created successfully");
setShowModal(false); setShowModal(false);

@ -22,7 +22,7 @@ const ShortcutView = (props: Props) => {
<> <>
<div <div
className={classNames( className={classNames(
"group w-auto px-3 py-2 flex flex-col justify-start items-start border rounded-lg hover:bg-gray-100 hover:shadow dark:border-zinc-800 dark:hover:bg-zinc-800" "group w-auto px-3 py-2 flex flex-col justify-start items-start border rounded-lg hover:bg-gray-100 hover:shadow dark:border-zinc-800 dark:hover:bg-zinc-800",
)} )}
> >
<div className="w-full flex flex-row justify-start items-center"> <div className="w-full flex flex-row justify-start items-center">
@ -37,7 +37,7 @@ const ShortcutView = (props: Props) => {
<div className="w-full flex flex-row justify-start items-center"> <div className="w-full flex flex-row justify-start items-center">
<button <button
className={classNames( className={classNames(
"max-w-full flex flex-row px-1 mr-1 justify-start items-center cursor-pointer rounded-md hover:underline" "max-w-full flex flex-row px-1 mr-1 justify-start items-center cursor-pointer rounded-md hover:underline",
)} )}
onClick={handleShortcutLinkClick} onClick={handleShortcutLinkClick}
> >

@ -49,7 +49,7 @@ const useShortcutStore = create(
set({ shortcutMapById: shortcutMap }); set({ shortcutMapById: shortcutMap });
return shortcut; return shortcut;
}, },
})) })),
); );
export default useShortcutStore; export default useShortcutStore;

@ -69,11 +69,10 @@ func (s *APIV1Service) GetGRPCServer() *grpc.Server {
} }
// RegisterGateway registers the gRPC-Gateway with the given Echo instance. // RegisterGateway registers the gRPC-Gateway with the given Echo instance.
func (s *APIV1Service) RegisterGateway(ctx context.Context, e *echo.Echo) error { func (s *APIV1Service) RegisterGateway(_ context.Context, e *echo.Echo) error {
// Create a client connection to the gRPC Server we just started. // Create a client connection to the gRPC Server we just started.
// This is where the gRPC-Gateway proxies the requests. // This is where the gRPC-Gateway proxies the requests.
conn, err := grpc.DialContext( conn, err := grpc.NewClient(
ctx,
fmt.Sprintf(":%d", s.grpcServerPort), fmt.Sprintf(":%d", s.grpcServerPort),
grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithTransportCredentials(insecure.NewCredentials()),
) )

Loading…
Cancel
Save