Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ const projectConfig = [
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',

Expand Down
4 changes: 2 additions & 2 deletions src/pages/groups/add-group-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const AddGroupDialog: FunctionComponent<AddGroupDialogProps> = (props) => {
const addGroup = useCallback(
(group: string) => {
UserAdminSrv.addGroup(group)
.catch((error) =>
.catch((_error) =>
snackError({
headerId: 'groups.table.error.add',
headerValues: {
Expand Down Expand Up @@ -85,7 +85,7 @@ const AddGroupDialog: FunctionComponent<AddGroupDialogProps> = (props) => {
name="group"
control={control}
rules={{ required: true, minLength: 1 }}
render={({ field, fieldState, formState }) => (
render={({ field, fieldState }) => (
<TextField
{...field}
autoFocus
Expand Down
4 changes: 2 additions & 2 deletions src/pages/profiles/add-profile-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const AddProfileDialog: FunctionComponent<AddProfileDialogProps> = (props) => {
name: name,
};
UserAdminSrv.addProfile(profileData)
.catch((error) =>
.catch((_error) =>
snackError({
headerId: 'profiles.table.error.add',
headerValues: {
Expand Down Expand Up @@ -89,7 +89,7 @@ const AddProfileDialog: FunctionComponent<AddProfileDialogProps> = (props) => {
name="name"
control={control}
rules={{ required: true, minLength: 1 }}
render={({ field, fieldState, formState }) => (
render={({ field, fieldState }) => (
<TextField
{...field}
autoFocus
Expand Down
4 changes: 2 additions & 2 deletions src/pages/users/add-user-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const AddUserDialog: FunctionComponent<AddUserDialogProps> = (props) => {
const addUser = useCallback(
(id: string) => {
UserAdminSrv.addUser(id)
.catch((error) =>
.catch((_error) =>
snackError({
headerId: 'users.table.error.add',
headerValues: {
Expand Down Expand Up @@ -86,7 +86,7 @@ const AddUserDialog: FunctionComponent<AddUserDialogProps> = (props) => {
name="name"
control={control}
rules={{ required: true, minLength: 1 }}
render={({ field, fieldState, formState }) => (
render={({ field, fieldState }) => (
<TextField
{...field}
autoFocus
Expand Down
2 changes: 1 addition & 1 deletion src/redux/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const reducer = createReducer<AppState>(initialState, (builder) => {
state.authenticationRouterError = action.authenticationRouterError;
});

builder.addCase(RESET_AUTHENTICATION_ROUTER_ERROR, (state, action: AuthenticationRouterErrorAction) => {
builder.addCase(RESET_AUTHENTICATION_ROUTER_ERROR, (state, _action: AuthenticationRouterErrorAction) => {
state.authenticationRouterError = null;
});

Expand Down
2 changes: 1 addition & 1 deletion src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function extractUserSub(user: User | null): Promise<unknown> {
export function parseError(text: string) {
try {
return JSON.parse(text);
} catch (err) {
} catch {
return null;
}
}
2 changes: 1 addition & 1 deletion src/utils/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { FilterChangedEvent, GridApi, IRowNode, SelectionChangedEvent } from 'ag-grid-community';
import { useCallback, useState } from 'react';

export function useDebugRender(label: string) {
export function useDebugRender(_label: string) {
// uncomment when you want the output in the console
/*if (import.meta.env.DEV) {
label = `${label} render`;
Expand Down
Loading