From 5b35bca56c57cd539ec618620271e234e7ffb679 Mon Sep 17 00:00:00 2001 From: Aman Mahajan Date: Wed, 29 Jan 2025 17:30:23 -0600 Subject: [PATCH] downgrade eslint --- eslint.config.js | 6 +----- package.json | 2 +- src/DataGrid.tsx | 2 -- src/TreeDataGrid.tsx | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index dec15a13af..3385e644f0 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -13,11 +13,7 @@ import markdown from '@eslint/markdown'; export default [ { - ignores: ['.cache', 'coverage', 'dist', 'lib'], - - linterOptions: { - reportUnusedInlineConfigs: 'warn' - } + ignores: ['.cache', 'coverage', 'dist', 'lib'] }, { name: 'common', diff --git a/package.json b/package.json index bed5827dfe..1be961fe3e 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "@wyw-in-js/rollup": "^0.5.0", "@wyw-in-js/vite": "^0.5.0", "browserslist": "^4.24.4", - "eslint": "^9.19.0", + "eslint": "9.18.0", "eslint-plugin-jest-dom": "^5.5.0", "eslint-plugin-react": "^7.37.4", "eslint-plugin-react-compiler": "^19.0.0-beta-27714ef-20250124", diff --git a/src/DataGrid.tsx b/src/DataGrid.tsx index f5efe623c4..ebe1357ad7 100644 --- a/src/DataGrid.tsx +++ b/src/DataGrid.tsx @@ -1061,7 +1061,6 @@ function DataGrid( // Reset the positions if the current values are no longer valid. This can happen if a column or row is removed if (selectedPosition.idx > maxColIdx || selectedPosition.rowIdx > maxRowIdx) { setSelectedPosition({ idx: -1, rowIdx: minRowIdx - 1, mode: 'SELECT' }); - // eslint-disable-next-line react-compiler/react-compiler setDraggedOverRowIdx(undefined); } @@ -1186,7 +1185,6 @@ function DataGrid( ); })} - {/* eslint-disable-next-line react-compiler/react-compiler */} {getViewportRows()} {bottomSummaryRows?.map((row, rowIdx) => { diff --git a/src/TreeDataGrid.tsx b/src/TreeDataGrid.tsx index 16e4f87232..238172f084 100644 --- a/src/TreeDataGrid.tsx +++ b/src/TreeDataGrid.tsx @@ -411,7 +411,7 @@ function TreeDataGrid( } return ( - + {...props} role="treegrid" aria-rowcount={