Skip to content

Commit

Permalink
fix: remove unused expressions, remove unused ts-ignores, add explici…
Browse files Browse the repository at this point in the history
…t ignores
  • Loading branch information
KenLSM committed Oct 15, 2024
1 parent edde6db commit 8fed177
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion frontend/src/features/admin-form/settings/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export const SettingsPage = (): JSX.Element => {
index={tabIndex === -1 ? 0 : tabIndex}
onChange={(index) => {
handleTabChange(index)
tabConfig[index]
}}
>
<Flex
Expand Down
1 change: 0 additions & 1 deletion frontend/src/mocks/msw/handlers/admin-form/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ export const createFormBuilderMocks = (
_id: cuid(),
} as FormFieldDto
if (req.body.fieldType === BasicField.Table) {
// eslint-disable-next-line @typescript-eslint/no-extra-semi
;(newField as TableFieldDto).columns = req.body.columns.map(
(col) => ({
...col,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/typings/react-table-config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ declare module 'react-table' {
// feature set, this is a safe default.
Record<string, any> {}

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface Hooks<
D extends Record<string, unknown> = Record<string, unknown>,
> extends UseSortByHooks<D> {}
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/utils/__tests__/datadog.tests.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-require-imports */
describe('datadogRum', () => {
describe('DD_RUM is undefined', () => {
beforeEach(() => {
Expand All @@ -11,7 +12,6 @@ describe('datadogRum', () => {
it('should return a noop function for addAction', () => {
// Arrange

// eslint-disable-next-line @typescript-eslint/no-var-requires
const datadogRum = require('../datadog').datadogRum
// Assert
expect(window.DD_RUM).not.toBeDefined()
Expand All @@ -35,7 +35,6 @@ describe('datadogRum', () => {

it('should call addAction without throwing', () => {
// Arrange
// eslint-disable-next-line @typescript-eslint/no-var-requires
const datadogRum = require('../datadog').datadogRum

// Assert
Expand Down
1 change: 0 additions & 1 deletion frontend/src/utils/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export const mutableTransformAllIsoStringsToDate = (body: unknown) => {
for (const key of Object.keys(body)) {
const value = (body as Record<string, unknown>)[key]
if (isIsoDateString(value)) {
// eslint-disable-next-line @typescript-eslint/no-extra-semi
;(body as Record<string, unknown>)[key] = parseISO(value)
} else if (typeof value === 'object') {
mutableTransformAllIsoStringsToDate(value)
Expand Down

0 comments on commit 8fed177

Please sign in to comment.