Skip to content

Commit 36e5f2e

Browse files
authored
chore: fix linting errors (#151)
1 parent 016238a commit 36e5f2e

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

src/AppContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export function AppContextProvider({ children }: { children: React.ReactNode })
137137
function tryGet<T>(getValue: () => T) {
138138
try {
139139
return getValue();
140-
} catch (err) {
140+
} catch (_err) {
141141
return undefined;
142142
}
143143
}

src/components/PropertiesViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function getLabelName(context: Context, obj: any) {
457457
return name.getText();
458458
}
459459
return undefined;
460-
} catch (err) {
460+
} catch (_err) {
461461
return undefined;
462462
}
463463
}

src/components/Spinner.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React from "react";
22
import { BeatLoader } from "react-spinners";
33

4-
export function Spinner(props: { backgroundColor?: string }) {
5-
const { backgroundColor } = props;
4+
export function Spinner() {
65
return (
76
<div
87
className={"verticallyCenter horizontallyCenter fillHeight"}

src/constants/actions.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
export const SET_CODE = "SET_CODE";
2-
// eslint-disable-next-line
32
export type SET_CODE = typeof SET_CODE;
43

54
export const SET_API_LOADING_STATE = "SET_API_LOADING_STATE";
6-
// eslint-disable-next-line
75
export type SET_API_LOADING_STATE = typeof SET_API_LOADING_STATE;
86

97
export const REFRESH_SOURCEFILE = "REFRESH_SOURCEFILE";
10-
// eslint-disable-next-line
118
export type REFRESH_SOURCEFILE = typeof REFRESH_SOURCEFILE;
129

1310
export const SET_SELECTED_NODE = "SET_SELECTED_NODE";
14-
// eslint-disable-next-line
1511
export type SET_SELECTED_NODE = typeof SET_SELECTED_NODE;
1612

1713
export const SET_OPTIONS = "SET_OPTIONS";
18-
// eslint-disable-next-line
1914
export type SET_OPTIONS = typeof SET_OPTIONS;
2015

2116
export const OS_THEME_CHANGE = "OS_THEME_CHANGE";
22-
// eslint-disable-next-line
2317
export type OS_THEME_CHANGE = typeof OS_THEME_CHANGE;

src/reducers/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ export function appReducer(
6161
};
6262
}
6363
default: {
64-
// eslint-disable-next-line
65-
const assertNever: never = action;
64+
const _assertNever: never = action;
6665
return state;
6766
}
6867
}

0 commit comments

Comments
 (0)