Skip to content
Open
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
10 changes: 8 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,17 @@ jobs:
restore-keys: |
pre-commit-v2-${{ runner.os }}-py${{ matrix.python-version }}-

- name: Get changed files
id: changed_files
uses: ./.github/actions/file-changes-action
with:
output: ' '

- name: pre-commit
run: |
set +e # Don't exit immediately on failure
export SKIP=eslint-frontend,type-checking-frontend
pre-commit run --all-files
export SKIP=type-checking-frontend
pre-commit run --files ${{ steps.changed_files.outputs.files }}
PRE_COMMIT_EXIT_CODE=$?
git diff --quiet --exit-code
GIT_DIFF_EXIT_CODE=$?
Expand Down
3 changes: 1 addition & 2 deletions superset-frontend/oxlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@
"jsx-a11y/no-noninteractive-tabindex": "error",
"jsx-a11y/no-redundant-roles": "error",
"jsx-a11y/no-static-element-interactions": "off",
// TODO: Fix missing aria-selected on tab roles
"jsx-a11y/role-has-required-aria-props": "warn",
"jsx-a11y/role-has-required-aria-props": "error",
"jsx-a11y/role-supports-aria-props": "error",
"jsx-a11y/scope": "error",
"jsx-a11y/tabindex-no-positive": "error",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const FilterTitleContainer = forwardRef<HTMLDivElement, Props>(
key={`filter-title-tab-${id}`}
onClick={() => onChange(id)}
className={classNames.join(' ')}
aria-selected={isActive}
>
<div css={{ display: 'flex', width: '100%', alignItems: 'center' }}>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const ItemTitleContainer = forwardRef<HTMLDivElement, Props>(
key={`item-title-tab-${id}`}
onClick={() => onChange(id)}
className={classNames.join(' ')}
aria-selected={isActive}
>
<div css={{ display: 'flex', width: '100%', alignItems: 'center' }}>
<div
Expand Down
Loading