Skip to content

chore(deps-dev): bump @callstack/eslint-config from 14.2.0 to 15.0.0 #1650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@babel/preset-flow": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@callstack/eslint-config": "^14.2.0",
"@callstack/eslint-config": "^15.0.0",
"@release-it/conventional-changelog": "^8.0.1",
"@relmify/jest-serializer-strip-ansi": "^1.0.2",
"@types/jest": "^29.5.12",
Expand Down
6 changes: 2 additions & 4 deletions src/__tests__/render-hook.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
import TestRenderer from 'react-test-renderer';
import { renderHook } from '../pure';

test('gives comitted result', () => {
test('gives committed result', () => {
const { result } = renderHook(() => {
const [state, setState] = React.useState(1);

Expand All @@ -22,13 +22,11 @@ test('allows rerendering', () => {
const [left, setLeft] = React.useState('left');
const [right, setRight] = React.useState('right');

// eslint-disable-next-line jest/no-if
switch (props.branch) {
case 'left':
return [left, setLeft];
case 'right':
return [right, setRight];

default:
throw new Error('No Props passed. This is a bug in the implementation');
}
Expand Down Expand Up @@ -64,7 +62,7 @@ const useMyHook = (param: number | undefined) => {
return param;
};

test('props type is infered correctly when initial props is defined', () => {
test('props type is inferred correctly when initial props is defined', () => {
const { result, rerender } = renderHook((num: number | undefined) => useMyHook(num), {
initialProps: 5,
});
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/wait-for-element-to-be-removed.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ test('waits with custom interval', async () => {
timeout: 600,
interval: 200,
});
} catch (e) {
} catch {
// Suppress expected error
}

Expand All @@ -133,7 +133,7 @@ test.each([false, true])(
timeout: 400,
interval: 200,
});
} catch (e) {
} catch {
// Suppress expected error
}

Expand Down
8 changes: 4 additions & 4 deletions src/__tests__/wait-for.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ test('waits for element with custom interval', async () => {

try {
await waitFor(() => mockFn(), { timeout: 400, interval: 200 });
} catch (e) {
} catch {
// suppress
}

Expand Down Expand Up @@ -160,7 +160,7 @@ test.each([false, true])(

try {
await waitFor(() => mockFn(), { timeout: 400, interval: 200 });
} catch (error) {
} catch {
// suppress
}

Expand All @@ -185,7 +185,7 @@ test.each([false, true])(
interval: 200,
onTimeout: mockHandleFn,
});
} catch (error) {
} catch {
// suppress
}

Expand Down Expand Up @@ -248,7 +248,7 @@ test.each([false, true])(

try {
await waitFor(() => mockFn(), { timeout: 400, interval: 200 });
} catch (error) {
} catch {
// suppress
}

Expand Down
2 changes: 1 addition & 1 deletion src/matchers/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class HostElementTypeError extends Error {
try {
withType = printWithType('Received', received, printReceived);
/* istanbul ignore next */
} catch (e) {
} catch {
// Deliberately empty.
}

Expand Down
2 changes: 1 addition & 1 deletion src/queries/unsafe-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const UNSAFE_queryAllByProps =
(props: { [propName: string]: any }) => {
try {
return UNSAFE_getAllByProps(instance)(props);
} catch (error) {
} catch {
return [];
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/queries/unsafe-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const UNSAFE_queryAllByType =
(type: React.ComponentType<any>) => {
try {
return UNSAFE_getAllByType(instance)(type);
} catch (error) {
} catch {
return [];
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/wait-for-element-to-be-removed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default async function waitForElementToBeRemoved<T>(
let result;
try {
result = expectation();
} catch (error) {
} catch {
return initialElements;
}

Expand Down
Loading
Loading