sandbox - add rules for new electron-sandbox layer

This commit is contained in:
Benjamin Pasero
2020-05-22 12:21:25 +02:00
parent 3e2c52ca28
commit 3514e96bf5
3 changed files with 122 additions and 28 deletions

View File

@@ -130,6 +130,14 @@ const RULES = [
'lib.dom.d.ts' // no DOM
]
},
// Electron (sandbox)
{
target: '**/vs/**/electron-sandbox/**',
allowedTypes: CORE_TYPES,
disallowedDefinitions: [
'@types/node' // no node.js
]
},
// Electron (renderer): skip
{
target: '**/vs/**/electron-browser/**',