Skip to content

Commit

Permalink
ignore false-positive lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nighto committed Nov 21, 2024
1 parent 59d962d commit b890c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const InvalidInput: Story = {
await userEvent.type(input, 'invalid');
await delay(100);
await userEvent.keyboard('{Enter}');
// biome-ignore lint/style/noNonNullAssertion: we know there is a form on this story
await fireEvent.submit(input.closest('form')!);
},
};
Expand Down
1 change: 1 addition & 0 deletions src/components/forms/fields/InputField/InputField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export const InputField = (props: InputFieldProps) => {
}
<div className={cl['bk-input-field__container']}>
{tags && (
// biome-ignore lint/suspicious/noArrayIndexKey: no other unique identifier available
tags.map((tag, idx) => <Tag key={idx} content={tag} onRemove={() => onRemoveTag(idx)}/>)
)}
<Input
Expand Down

0 comments on commit b890c38

Please sign in to comment.