Skip to content
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

fix(deps): update dependencies to latest minor #753

Merged
merged 1 commit into from
Apr 12, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type IsCustomQueryFn = (node: TSESTree.Identifier) => boolean;
type IsBuiltInQueryFn = (node: TSESTree.Identifier) => boolean;
type IsAsyncUtilFn = (
node: TSESTree.Identifier,
validNames?: readonly typeof ASYNC_UTILS[number][]
validNames?: readonly (typeof ASYNC_UTILS)[number][]
) => boolean;
type IsFireEventMethodFn = (node: TSESTree.Identifier) => boolean;
type IsUserEventMethodFn = (node: TSESTree.Identifier) => boolean;
Expand All @@ -82,7 +82,7 @@ type IsRenderVariableDeclaratorFn = (
) => boolean;
type IsDebugUtilFn = (
identifierNode: TSESTree.Identifier,
validNames?: ReadonlyArray<typeof DEBUG_UTILS[number]>
validNames?: ReadonlyArray<(typeof DEBUG_UTILS)[number]>
) => boolean;
type IsPresenceAssertFn = (node: TSESTree.MemberExpression) => boolean;
type IsAbsenceAssertFn = (node: TSESTree.MemberExpression) => boolean;
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-await-sync-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const VALID_EVENT_MODULES = ['fire-event', 'user-event'] as const;
export const RULE_NAME = 'no-await-sync-events';
export type MessageIds = 'noAwaitSyncEvents';
type Options = [
{ eventModules?: readonly typeof VALID_EVENT_MODULES[number][] }
{ eventModules?: readonly (typeof VALID_EVENT_MODULES)[number][] }
];

export default createTestingLibraryRule<Options, MessageIds>({
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-debugging-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { DEBUG_UTILS } from '../utils';

type DebugUtilsToCheckFor = Partial<
Record<typeof DEBUG_UTILS[number], boolean>
Record<(typeof DEBUG_UTILS)[number], boolean>
>;

export const RULE_NAME = 'no-debugging-utils';
Expand Down Expand Up @@ -153,7 +153,7 @@ export default createTestingLibraryRule<Options, MessageIds>({

const isDebugUtil = helpers.isDebugUtil(
callExpressionIdentifier,
utilsToReport as Array<typeof DEBUG_UTILS[number]>
utilsToReport as Array<(typeof DEBUG_UTILS)[number]>
);
const isDeclaredDebugVariable = suspiciousDebugVariableNames.includes(
callExpressionIdentifier.name
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-user-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const UserEventMethods = [
'unhover',
'paste',
] as const;
type UserEventMethodsType = typeof UserEventMethods[number];
type UserEventMethodsType = (typeof UserEventMethods)[number];

// maps fireEvent methods to userEvent. Those not found here, do not have an equivalent (yet)
export const MAPPING_TO_USER_EVENT: Record<string, UserEventMethodsType[]> = {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ export const SUPPORTED_TESTING_FRAMEWORKS = [
'marko',
] as const;
export type SupportedTestingFramework =
typeof SUPPORTED_TESTING_FRAMEWORKS[number];
(typeof SUPPORTED_TESTING_FRAMEWORKS)[number];
Loading