test(desktop): warn when using document in tsx tests
this is almost always a mistake
This commit is contained in:
parent
f382ff84f7
commit
66c097ab78
1 changed files with 6 additions and 0 deletions
|
|
@ -113,6 +113,12 @@ export default [
|
|||
sourceType: 'module'
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['**/*.test.tsx'],
|
||||
rules: {
|
||||
'no-restricted-globals': ['warn', 'document']
|
||||
}
|
||||
},
|
||||
{
|
||||
ignores: ['*.config.*']
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue