From 2912bf50c5346c5d5b14b854a58672d52ec64c0e Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 28 Jul 2025 10:52:45 -0400 Subject: [PATCH] Fix eslint config --- eslint.config.mjs | 10 +--------- src/apps/dashboard/routes/plugins/index.tsx | 4 ++++ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 3414e42e95..03a04c84e4 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -361,15 +361,7 @@ export default tseslint.config( } } ], - '@typescript-eslint/no-deprecated': [ - 'warn', - { - allow: [ - // Allow the deprecated Grid component from mui since JMP does not support CSS gap on some OSs - { from: '@mui/material/Grid', name: 'Grid' } - ] - } - ], + '@typescript-eslint/no-deprecated': 'warn', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/prefer-string-starts-ends-with': 'error' } diff --git a/src/apps/dashboard/routes/plugins/index.tsx b/src/apps/dashboard/routes/plugins/index.tsx index 2cf45a4967..0675d03163 100644 --- a/src/apps/dashboard/routes/plugins/index.tsx +++ b/src/apps/dashboard/routes/plugins/index.tsx @@ -217,8 +217,12 @@ export const Component = () => { {filteredPlugins.length > 0 ? ( + // NOTE: Legacy Grid is required due to lack of gap support in JMP on some OSs + // eslint-disable-next-line @typescript-eslint/no-deprecated {filteredPlugins.map(plugin => ( + // NOTE: Legacy Grid is required due to lack of gap support in JMP on some OSs + // eslint-disable-next-line @typescript-eslint/no-deprecated