test(desktop): warn when using document in tsx tests

this is almost always a mistake
This commit is contained in:
ethernet 2026-07-08 19:23:58 -04:00
parent f382ff84f7
commit 66c097ab78

View file

@ -113,6 +113,12 @@ export default [
sourceType: 'module'
}
},
{
files: ['**/*.test.tsx'],
rules: {
'no-restricted-globals': ['warn', 'document']
}
},
{
ignores: ['*.config.*']
}