mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
Add eslint rule restricting replaceChildren
This commit is contained in:
@@ -71,6 +71,13 @@ export default tseslint.config(
|
||||
'no-redeclare': 'off',
|
||||
'@typescript-eslint/no-redeclare': ['error', { builtinGlobals: false }],
|
||||
'no-restricted-globals': ['error'].concat(restrictedGlobals),
|
||||
'no-restricted-properties': [
|
||||
'error',
|
||||
{
|
||||
property: 'replaceChildren',
|
||||
message: 'replaceChildren is not supported in all target browsers'
|
||||
}
|
||||
],
|
||||
'no-return-assign': 'error',
|
||||
'no-return-await': 'error',
|
||||
'no-sequences': ['error', { 'allowInParentheses': false }],
|
||||
|
||||
Reference in New Issue
Block a user