This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a change to branch oxc-linter-migration
in repository https://gitbox.apache.org/repos/asf/superset.git


    from 36d2eaa5f7 fix(frontend): Replace execSync with execFileSync for 
security
     add f54bfeaf37 fix(frontend): Fix linting issues and migrate pre-commit to 
OXC

No new revisions were added by this update.

Summary of changes:
 .pre-commit-config.yaml                            |   6 +-
 scripts/{eslint.sh => oxlint.sh}                   |  22 ++++-
 superset-frontend/build-custom-oxc.sh              |   5 +-
 superset-frontend/oxc-ci-example.yml               |  93 ++++++++++++++++++
 .../superset-ui-chart-controls/src/types.ts        |   2 +-
 .../test/operators/renameOperator.test.ts          |  50 ++++------
 .../test/operators/sortOperator.test.ts            |  12 +--
 .../test/utils/getTemporalColumns.test.ts          |   6 +-
 .../superset-ui-core/src/components/Modal/types.ts |   4 +-
 .../packages/superset-ui-core/src/theme/Theme.tsx  |   2 +-
 .../src/time-comparison/customTimeRangeDecode.ts   |  10 +-
 .../src/validator/validateMaxValue.ts              |   2 +-
 .../src/layers/spatialUtils.ts                     |   2 +-
 .../src/utilities/tooltipUtils.tsx                 |   2 +-
 .../src/utils/crossFiltersDataMask.ts              |   6 +-
 .../src/AgGridTableChart.tsx                       |   4 +-
 .../plugin-chart-ag-grid-table/src/buildQuery.ts   |   2 +-
 .../src/utils/getCrossFilterDataMask.ts            |   2 +-
 .../src/Gantt/controlPanel.tsx                     |   2 +-
 .../src/MixedTimeseries/EchartsMixedTimeseries.tsx |   4 +-
 .../src/PivotTableChart.tsx                        |   2 +-
 .../plugins/plugin-chart-table/src/TableChart.tsx  |   6 +-
 .../plugins/plugin-chart-table/src/buildQuery.ts   |   2 +-
 superset-frontend/scripts/build-oxc-releases.sh    |  69 +++++++++++++
 .../scripts/download-oxlint-superset.js            | 109 +++++++++++++++++++++
 superset-frontend/scripts/ensure-custom-oxc.js     |  69 +++++++++++--
 .../src/SqlLab/components/ResultSet/index.tsx      |   3 +-
 .../SqlLab/components/SaveDatasetModal/index.tsx   |   2 +-
 .../components/TableElement/TableElement.test.tsx  |   2 +-
 superset-frontend/src/SqlLab/fixtures.ts           |   2 +-
 .../middlewares/persistSqlLabStateEnhancer.js      |   2 +-
 .../Chart/ChartContextMenu/ChartContextMenu.tsx    |   3 +-
 .../Chart/DrillDetail/DrillDetailTableControls.tsx |   2 +-
 .../src/components/FacePile/FacePile.stories.tsx   |   2 +-
 .../src/components/FacePile/FacePile.test.tsx      |   2 +-
 .../src/components/FacePile/utils.tsx              |   2 +-
 .../src/components/ListView/CardCollection.tsx     |   2 +-
 .../src/dashboard/actions/dashboardState.js        |   4 +-
 .../src/dashboard/components/Header/types.ts       |   2 +-
 .../components/SliceHeaderControls/index.tsx       |   4 +-
 .../dashboard/components/menu/WithPopoverMenu.tsx  |  16 +--
 .../FilterBar/FilterBarSettings/index.tsx          |   2 +-
 .../src/dashboard/containers/DashboardPage.tsx     |   2 +-
 .../src/dashboard/reducers/dashboardState.test.ts  |  10 +-
 .../src/dashboard/util/permissionUtils.test.ts     |   2 +-
 .../explore/components/ControlPanelsContainer.tsx  |  10 +-
 .../controls/DatasourceControl/index.jsx           |   2 +-
 ...AdhocFilterEditPopoverSimpleTabContent.test.tsx |   6 +-
 .../controls/SelectAsyncControl/index.tsx          |   2 +-
 superset-frontend/src/features/alerts/types.ts     |   2 +-
 .../src/features/cssTemplates/CssTemplateModal.tsx |   2 +-
 .../src/features/databases/DatabaseModal/index.tsx |  32 +++++-
 .../src/features/home/ChartTable.test.tsx          |   2 +-
 .../src/features/home/RightMenu.test.tsx           |  44 +++++----
 superset-frontend/src/features/home/RightMenu.tsx  |   2 +-
 .../src/features/themes/ThemeModal.tsx             |  10 +-
 superset-frontend/src/features/users/utils.ts      |   2 +-
 .../components/Select/SelectFilterPlugin.tsx       |   2 +-
 .../pages/AlertReportList/AlertReportList.test.jsx |   2 +-
 .../AnnotationLayerList.test.jsx                   |   2 +-
 .../pages/CssTemplateList/CssTemplateList.test.jsx |   2 +-
 .../src/pages/DashboardList/DashboardList.test.jsx |   2 +-
 superset-frontend/src/pages/DatabaseList/index.tsx |   2 +-
 .../src/pages/DatasetCreation/index.tsx            |   2 +-
 .../ExecutionLogList/ExecutionLogList.test.tsx     |   2 +-
 superset-frontend/src/pages/Home/Home.test.tsx     |   3 +-
 superset-frontend/src/pages/Home/index.tsx         |   2 +-
 .../src/pages/RolesList/RolesList.test.tsx         |   6 +-
 .../pages/SavedQueryList/SavedQueryList.test.tsx   |   2 +-
 .../UserRegistrations/UserRegistrations.test.tsx   |   2 +-
 .../src/pages/UsersList/UsersList.test.tsx         |   4 +-
 superset-frontend/src/views/types.ts               |   2 +-
 superset-frontend/tsconfig.json                    |   6 +-
 superset-frontend/webpack.config.js                |   4 +-
 74 files changed, 534 insertions(+), 190 deletions(-)
 copy scripts/{eslint.sh => oxlint.sh} (64%)
 create mode 100644 superset-frontend/oxc-ci-example.yml
 create mode 100644 superset-frontend/scripts/build-oxc-releases.sh
 create mode 100644 superset-frontend/scripts/download-oxlint-superset.js

Reply via email to