feat(frontend): Replace ESLint with OXC hybrid linting architecture (#35506)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2025-10-30 09:26:21 -07:00
committed by GitHub
parent a5eb02d178
commit 8ccdf3b32b
121 changed files with 2243 additions and 755 deletions

View File

@@ -286,9 +286,8 @@ const ResultSet = ({
const key = await postFormData(results.query_id, 'query', {
...EXPLORE_CHART_DEFAULT,
datasource: `${results.query_id}__query`,
...{
all_columns: results.columns.map(column => column.column_name),
},
all_columns: results.columns.map(column => column.column_name),
});
const url = mountExploreUrl(null, {
[URL_PARAMS.formDataKey.name]: key,

View File

@@ -218,7 +218,7 @@ export const SaveDatasetModal = ({
};
const formDataWithDefaults = {
...EXPLORE_CHART_DEFAULT,
...(formData || {}),
...formData,
};
const handleOverwriteDataset = async () => {
// if user wants to overwrite a dataset we need to prompt them

View File

@@ -163,7 +163,7 @@ test('sorts columns', async () => {
getAllByTestId('mock-column-element').map(el => el.textContent),
).toEqual(table.columns.map(col => col.name));
fireEvent.click(getByText('Sort columns alphabetically'));
const sorted = [...table.columns.map(col => col.name)].sort();
const sorted = table.columns.map(col => col.name).sort();
expect(
getAllByTestId('mock-column-element').map(el => el.textContent),
).toEqual(sorted);

View File

@@ -774,7 +774,7 @@ export const testQuery: ISaveableDatasource = {
],
};
export const mockdatasets = [...new Array(3)].map((_, i) => ({
export const mockdatasets = new Array(3).fill(undefined).map((_, i) => ({
changed_by_name: 'user',
kind: i === 0 ? 'virtual' : 'physical', // ensure there is 1 virtual
changed_by: 'user',

View File

@@ -117,7 +117,7 @@ const sqlLabPersistStateConfig = {
...initialState,
...persistedState,
sqlLab: {
...(persistedState?.sqlLab || {}),
...persistedState?.sqlLab,
// Overwrite initialState over persistedState for sqlLab
// since a logic in getInitialState overrides the value from persistedState
...initialState.sqlLab,