Add eslint rule restricting replaceChildren

This commit is contained in:
Bill Thornton
2026-05-13 09:23:25 -04:00
parent a2da9b9dd6
commit 0d4173e816
+7
View File
@@ -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 }],