Skip to content

Commit 1cc66db

Browse files
committed
Address ESLint @typescript-eslint/no-empty-object-type
1 parent 67337a0 commit 1cc66db

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

ui/frontend/compileActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface Props {
3232
}
3333

3434
interface CompileActions {
35-
action: AsyncThunk<CompileResponseBody, CompileRequestBody, {}>;
35+
action: AsyncThunk<CompileResponseBody, CompileRequestBody, object>;
3636
performCompile: () => ThunkAction;
3737
}
3838

ui/frontend/eslint.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ export default tseslint.config(
5858
'react/jsx-boolean-value': ['error', 'never'],
5959

6060
...reactHooksPlugin.configs.recommended.rules,
61-
62-
// Disabled to upgrade to eslint 9
63-
'@typescript-eslint/no-empty-object-type': 'off',
6461
},
6562
},
6663
);

ui/frontend/selectors/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export const getAdvancedOptionsSet = createSelector(
186186
),
187187
);
188188

189-
export const hasProperties = (obj: {}) => Object.values(obj).some(val => !!val);
189+
export const hasProperties = (obj: object) => Object.values(obj).some(val => !!val);
190190

191191
const getOutputs = createSelector(
192192
(state: State) => state,

ui/frontend/uss-router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { isEqual } from 'lodash-es';
22
import { configureStore, ThunkAction, Reducer, Store, Action } from '@reduxjs/toolkit';
33
import { BrowserHistory, Location, Path } from 'history';
44

5-
export type PlainOrThunk<St, A extends Action<any>> = A | ThunkAction<void, St, {}, A>;
5+
export type PlainOrThunk<St, A extends Action<any>> = A | ThunkAction<void, St, unknown, A>;
66

77
// This is a... dense... attempt at saying "we accept any store with
88
// any dispatch so long as it can handle the actions you create". It's

0 commit comments

Comments
 (0)