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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@testing-library/jest-dom": "5.16.1",
"@testing-library/react": "12.1.2",
"@testing-library/react-hooks": "7.0.2",
"@types/react-router-dom": "5.3.2",
"builtin-modules": "3.2.0",
"cross-env": "7.0.3",
"eslint": "8.4.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/use-dataloader/src/__tests__/useDataLoader.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import { act, renderHook } from '@testing-library/react-hooks'
import React from 'react'
import DataLoaderProvider, { useDataLoaderContext } from '../DataLoaderProvider'
Expand Down Expand Up @@ -661,6 +660,8 @@ describe('useDataLoader', () => {
expect(mockedFn).toBeCalledTimes(2)
})

/* eslint-disable no-console */

test('should cancel request', async () => {
const originalError = console.error
console.error = jest.fn()
Expand Down Expand Up @@ -741,4 +742,6 @@ describe('useDataLoader', () => {
expect(result.current.isError).toBe(false)
console.error = originalError
})

/* eslint-enable no-console */
})
1 change: 0 additions & 1 deletion packages/use-i18n/src/__tests__/usei18n.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import { act, renderHook } from '@testing-library/react-hooks'
import mockdate from 'mockdate'
import React from 'react'
Expand Down
4 changes: 0 additions & 4 deletions packages/use-i18n/src/usei18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ const I18nContextProvider = ({
)

const datetime = useCallback(
// intl-format-chache does not forwrad return types
// eslint-disable-next-line
(date: Date | number, options?: Intl.DateTimeFormatOptions): string => formatters.getDateTimeFormat(currentLocale, options).format(date),
[currentLocale],
)
Expand Down Expand Up @@ -283,8 +281,6 @@ const I18nContextProvider = ({
return ''
}
if (context) {
// intl-format-chache does not forwrad return types
// eslint-disable-next-line
return formatters.getTranslationFormat(value, currentLocale).format(context) as string
}

Expand Down
29 changes: 0 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3367,13 +3367,6 @@ __metadata:
languageName: node
linkType: hard

"@types/history@npm:*":
version: 4.7.9
resolution: "@types/history@npm:4.7.9"
checksum: 556b062adb92795839301965776b0418e9ca32798bd8a6031345a6a84d7512771107143a497b7e3ff826d0b0d4456e962c6450485dda6f55c7dd33371e840529
languageName: node
linkType: hard

"@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1":
version: 2.0.3
resolution: "@types/istanbul-lib-coverage@npm:2.0.3"
Expand Down Expand Up @@ -3481,27 +3474,6 @@ __metadata:
languageName: node
linkType: hard

"@types/react-router-dom@npm:5.3.2":
version: 5.3.2
resolution: "@types/react-router-dom@npm:5.3.2"
dependencies:
"@types/history": "*"
"@types/react": "*"
"@types/react-router": "*"
checksum: 90f052dc5a43a77edaf41d2afa781c8ed2164cd7922b3cdf5daae446b02a2f279382425e6efc338260782c0a24d25a6101e3658acb41c8a053695968a351ea96
languageName: node
linkType: hard

"@types/react-router@npm:*":
version: 5.1.17
resolution: "@types/react-router@npm:5.1.17"
dependencies:
"@types/history": "*"
"@types/react": "*"
checksum: b9d1c7b6ce073652c39712d2b02aeec7640036e369c04be2e57e4b0eb049b64ec9f34fb91cad680ab3f794e89576f77aacadb015b61eb21500a1779e5c955b86
languageName: node
linkType: hard

"@types/react-test-renderer@npm:>=16.9.0":
version: 17.0.1
resolution: "@types/react-test-renderer@npm:17.0.1"
Expand Down Expand Up @@ -10074,7 +10046,6 @@ __metadata:
"@testing-library/jest-dom": 5.16.1
"@testing-library/react": 12.1.2
"@testing-library/react-hooks": 7.0.2
"@types/react-router-dom": 5.3.2
builtin-modules: 3.2.0
cross-env: 7.0.3
eslint: 8.4.1
Expand Down