Skip to content

Commit

Permalink
resolve linting issues and enable variables and arguments to begin wi…
Browse files Browse the repository at this point in the history
…th '_'
  • Loading branch information
bayoudhi committed Jan 18, 2024
1 parent 2188724 commit 9917b9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
],
"rules": {
"prettier/prettier": 2, // Means error,
"@typescript-eslint/no-explicit-any": ["off"]
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
}
}
6 changes: 3 additions & 3 deletions src/matchers/cognito.internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const toExistAndMatchObject = withRetry(async function (
const client = getCognitoClient(clientConfig);

try {
const { $metadata, ...received } = await client.send(
const { $metadata: _, ...received } = await client.send(
new AdminGetUserCommand({
UserPoolId: userPoolId,
Username: username,
Expand Down Expand Up @@ -119,7 +119,7 @@ export const toExistAndMatchSnapshot = withRetry(async function (

const client = getCognitoClient(clientConfig);
try {
const { $metadata, ...received } = await client.send(
const { $metadata: _, ...received } = await client.send(
new AdminGetUserCommand({
UserPoolId: userPoolId,
Username: username,
Expand Down Expand Up @@ -158,7 +158,7 @@ export const toExistAndMatchInlineSnapshot = withRetry(async function (
const client = getCognitoClient(clientConfig);

try {
const { $metadata, ...received } = await client.send(
const { $metadata: _, ...received } = await client.send(
new AdminGetUserCommand({
UserPoolId: userPoolId,
Username: username,
Expand Down

0 comments on commit 9917b9c

Please sign in to comment.