mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-01-15 16:33:35 -03:00
Fix eslint config
This commit is contained in:
@@ -361,15 +361,7 @@ export default tseslint.config(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
'@typescript-eslint/no-deprecated': [
|
'@typescript-eslint/no-deprecated': 'warn',
|
||||||
'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-floating-promises': 'error',
|
'@typescript-eslint/no-floating-promises': 'error',
|
||||||
'@typescript-eslint/prefer-string-starts-ends-with': 'error'
|
'@typescript-eslint/prefer-string-starts-ends-with': 'error'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -217,8 +217,12 @@ export const Component = () => {
|
|||||||
|
|
||||||
<Box>
|
<Box>
|
||||||
{filteredPlugins.length > 0 ? (
|
{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}>
|
<Grid container spacing={2}>
|
||||||
{filteredPlugins.map(plugin => (
|
{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
|
<Grid
|
||||||
key={plugin.id}
|
key={plugin.id}
|
||||||
item
|
item
|
||||||
|
|||||||
Reference in New Issue
Block a user