mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-01-15 08:23:36 -03:00
Fix eslint config
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
@@ -217,8 +217,12 @@ export const Component = () => {
|
||||
|
||||
<Box>
|
||||
{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
|
||||
<Grid container spacing={2}>
|
||||
{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
|
||||
<Grid
|
||||
key={plugin.id}
|
||||
item
|
||||
|
||||
Reference in New Issue
Block a user