Upgrade ESLint plugins (#13153)
GitOrigin-RevId: 9cd0b4429a9c2b3df9c18957aef21ef021e5fdfd
This commit is contained in:
@@ -16,7 +16,9 @@ function FileTreeDoc({ name, id, isFile, isLinkedFile }) {
|
||||
|
||||
return (
|
||||
<li
|
||||
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
||||
role="treeitem"
|
||||
// aria-selected is provided in selectableEntityProps
|
||||
{...selectableEntityProps}
|
||||
aria-label={name}
|
||||
tabIndex="0"
|
||||
|
||||
@@ -62,7 +62,9 @@ function FileTreeFolder({ name, id, folders, docs, files }) {
|
||||
return (
|
||||
<>
|
||||
<li
|
||||
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
||||
role="treeitem"
|
||||
// aria-selected is provided in selectableEntityProps
|
||||
{...selectableEntityProps}
|
||||
aria-expanded={expanded}
|
||||
aria-label={name}
|
||||
|
||||
@@ -11,7 +11,6 @@ export default function FileViewImage({ fileName, fileId, onLoad, onError }) {
|
||||
src={`/project/${projectId}/file/${fileId}`}
|
||||
onLoad={onLoad}
|
||||
onError={onError}
|
||||
onAbort={onError}
|
||||
alt={fileName}
|
||||
/>
|
||||
)
|
||||
|
||||
+2
@@ -46,6 +46,8 @@ function HistoryFileTreeFolder({
|
||||
return (
|
||||
<>
|
||||
<li
|
||||
// FIXME
|
||||
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
||||
role="treeitem"
|
||||
aria-expanded={expanded}
|
||||
aria-label={name}
|
||||
|
||||
@@ -58,6 +58,8 @@ const OutlineItem = memo(function OutlineItem({
|
||||
<li
|
||||
className={mainItemClasses}
|
||||
aria-expanded={ariaExpandedValue}
|
||||
// FIXME
|
||||
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
||||
role="treeitem"
|
||||
aria-current={isHighlighted}
|
||||
aria-label={outlineItem.title}
|
||||
|
||||
Reference in New Issue
Block a user