Skip to content

Commit 08f1608

Browse files
committed
chore: upgrade typescript-eslint/eslint-plugin
1 parent 6c48bf2 commit 08f1608

File tree

11 files changed

+93
-149
lines changed

11 files changed

+93
-149
lines changed

package-lock.json

Lines changed: 78 additions & 138 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"@types/react": "17.0.39",
4444
"@types/react-dom": "17.0.13",
4545
"@types/react-router-dom": "^5.3.3",
46-
"@typescript-eslint/eslint-plugin": "^6.17.0",
47-
"@typescript-eslint/parser": "^6.17.0",
46+
"@typescript-eslint/eslint-plugin": "8.3.0",
47+
"@typescript-eslint/parser": "8.3.0",
4848
"@vitejs/plugin-react": "4.3.1",
4949
"eslint": "^8.56.0",
5050
"eslint-config-airbnb": "^19.0.4",

src/Common/RJSF/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const getRedirectionProps = (
102102
rel: isInternalUrl ? undefined : 'external noreferrer',
103103
url,
104104
}
105-
} catch (err) {
105+
} catch {
106106
return {
107107
href: url,
108108
target: '_blank',

src/Shared/Components/ButtonWithLoader/ButtonWithLoader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react/prop-types */
12
/*
23
* Copyright (c) 2024. Devtron Inc.
34
*

src/Shared/Components/CICDHistory/LogsRenderer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export const LogsRenderer = ({
214214
`\x1B[0m\x1B[48;2;197;141;54m${match}\x1B[0m${index > 0 ? availableEscapeCodes[index - 1] : ''}`,
215215
),
216216
)
217-
} catch (searchRegexError) {
217+
} catch {
218218
acc.push(part)
219219
}
220220

@@ -228,7 +228,7 @@ export const LogsRenderer = ({
228228
}
229229
const ansiUp = new AnsiUp()
230230
return { __html: ansiUp.ansi_to_html(log), isSearchKeyPresent }
231-
} catch (err) {
231+
} catch {
232232
return { __html: log, isSearchKeyPresent }
233233
}
234234
}
@@ -328,7 +328,7 @@ export const LogsRenderer = ({
328328
})
329329
}
330330
return acc
331-
} catch (e) {
331+
} catch {
332332
// In case of error would not create
333333
return acc
334334
}

src/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { Collapse } from '../Collapse'
66
import { DeploymentConfigDiffAccordionProps } from './types'
77

88
export const DeploymentConfigDiffAccordion = forwardRef<HTMLDivElement, DeploymentConfigDiffAccordionProps>(
9-
({ hasDiff, children, title, id, isExpanded, onClick, onTransitionEnd }, ref) => (
9+
(
10+
{ hasDiff, children, title, id, isExpanded, onClick, onTransitionEnd }: DeploymentConfigDiffAccordionProps,
11+
ref,
12+
) => (
1013
<div ref={ref} id={id} className="dc__border br-4 deployment-config-diff__accordion">
1114
<button
1215
type="button"

src/Shared/Components/Header/PageHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const PageHeader = ({
6969
serverInfo: result,
7070
fetchingServerInfo: false,
7171
})
72-
} catch (err) {
72+
} catch {
7373
setCurrentServerInfo({
7474
serverInfo: currentServerInfo.serverInfo,
7575
fetchingServerInfo: false,

src/Shared/Components/Plugin/PluginList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const PluginList = ({
5555
)
5656

5757
handleDataUpdateForPluginResponse(pluginDataResponse, true)
58-
} catch (error) {
58+
} catch {
5959
// Do nothing
6060
} finally {
6161
setIsLoadingMorePlugins(false)

src/Shared/Helpers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const highlightSearchText = ({ searchText, text, highlightClasses }: High
7575
try {
7676
const regex = new RegExp(searchText, 'gi')
7777
return text.replace(regex, (match) => `<span class="${highlightClasses}">${match}</span>`)
78-
} catch (error) {
78+
} catch {
7979
return text
8080
}
8181
}

src/Shared/validations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export const validateProtocols = (
218218
isValid: true,
219219
}
220220
}
221-
} catch (error) {
221+
} catch {
222222
// Do nothing
223223
}
224224

File renamed without changes.

0 commit comments

Comments
 (0)