Skip to content

Commit

Permalink
chore(deps): update eslint-plugin-github to v4.10 (#3805)
Browse files Browse the repository at this point in the history
* chore(deps): update eslint-plugin-github to v4.10

* test: update snapshots

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack authored Oct 12, 2023
1 parent 30b7dee commit b99b3ee
Show file tree
Hide file tree
Showing 8 changed files with 223 additions and 37 deletions.
229 changes: 200 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"cross-env": "7.0.3",
"eslint": "8.40.0",
"eslint-import-resolver-typescript": "3.6.0",
"eslint-plugin-github": "4.8.0",
"eslint-plugin-github": "4.10.1",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-mdx": "2.2.0",
Expand Down
6 changes: 1 addition & 5 deletions src/FilterList/FilterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ export type FilterListItemProps = {count?: number} & ComponentProps<typeof Filte
const FilterListItem = ({children, count, ...rest}: React.PropsWithChildren<FilterListItemProps>) => {
return (
<FilterListItemBase {...rest}>
{count && (
<span title="results" className="count">
{count}
</span>
)}
{count && <span className="count">{count}</span>}
{children}
</FilterListItemBase>
)
Expand Down
1 change: 1 addition & 0 deletions src/PageLayout/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ const Pane = React.forwardRef<HTMLDivElement, React.PropsWithChildren<PageLayout
{...(id && {id: paneId})}
>
{resizable && (
// eslint-disable-next-line github/a11y-no-visually-hidden-interactive-element
<VisuallyHidden>
<form onSubmit={handleWidthFormSubmit}>
<label htmlFor={`${paneId}-width-input`}>Pane width</label>
Expand Down
9 changes: 8 additions & 1 deletion src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ const StyledSelect = styled.select`
`

const ArrowIndicatorSVG: React.FC<React.PropsWithChildren<{className?: string}>> = ({className}) => (
<svg width="16" height="16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" className={className}>
<svg
aria-hidden="true"
width="16"
height="16"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<path d="m4.074 9.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.043 9H4.251a.25.25 0 0 0-.177.427ZM4.074 7.47 7.47 4.073a.25.25 0 0 1 .354 0L11.22 7.47a.25.25 0 0 1-.177.426H4.251a.25.25 0 0 1-.177-.426Z" />
</svg>
)
Expand Down
9 changes: 8 additions & 1 deletion src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ const StyledSelect = styled.select`
`

const ArrowIndicatorSVG: React.FC<React.PropsWithChildren<{className?: string}>> = ({className}) => (
<svg width="16" height="16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" className={className}>
<svg
aria-hidden="true"
width="16"
height="16"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<path d="m4.074 9.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.043 9H4.251a.25.25 0 0 0-.177.427ZM4.074 7.47 7.47 4.073a.25.25 0 0 1 .354 0L11.22 7.47a.25.25 0 0 1-.177.426H4.251a.25.25 0 0 1-.177-.426Z" />
</svg>
)
Expand Down
2 changes: 2 additions & 0 deletions src/ToggleSwitch/ToggleSwitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type InnerIconProps = {size?: ToggleSwitchProps['size']}

const CircleIcon: React.FC<React.PropsWithChildren<InnerIconProps>> = ({size}) => (
<svg
aria-hidden="true"
width={size === 'small' ? '12' : '16'}
height={size === 'small' ? '12' : '16'}
viewBox="0 0 16 16"
Expand All @@ -64,6 +65,7 @@ const CircleIcon: React.FC<React.PropsWithChildren<InnerIconProps>> = ({size}) =
)
const LineIcon: React.FC<React.PropsWithChildren<InnerIconProps>> = ({size}) => (
<svg
aria-hidden="true"
width={size === 'small' ? '12' : '16'}
height={size === 'small' ? '12' : '16'}
viewBox="0 0 16 16"
Expand Down
2 changes: 2 additions & 0 deletions src/__tests__/__snapshots__/ToggleSwitch.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ exports[`renders consistently 1`] = `
color="switchTrack.checked.fg"
>
<svg
aria-hidden="true"
fill="currentColor"
height="16"
viewBox="0 0 16 16"
Expand All @@ -256,6 +257,7 @@ exports[`renders consistently 1`] = `
color="switchTrack.fg"
>
<svg
aria-hidden="true"
fill="currentColor"
height="16"
viewBox="0 0 16 16"
Expand Down

0 comments on commit b99b3ee

Please sign in to comment.