mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
58
tslint.json
58
tslint.json
@@ -9,10 +9,10 @@
|
||||
"no-duplicate-super": true,
|
||||
"no-duplicate-switch-case": true,
|
||||
"no-duplicate-variable": true,
|
||||
// "no-for-in-array": true, // {{SQL CARBON EDIT}} @anthonydresser disable till we fix
|
||||
"no-for-in-array": true,
|
||||
"no-eval": true,
|
||||
"no-redundant-jsdoc": true,
|
||||
// "no-restricted-globals": true, // {{SQL CARBON EDIT}} @anthonydresser disable till we fix
|
||||
"no-restricted-globals": true,
|
||||
"no-sparse-arrays": true,
|
||||
"no-string-throw": true,
|
||||
"no-unsafe-finally": true,
|
||||
@@ -170,6 +170,60 @@
|
||||
],
|
||||
// {{SQL CARBON EDIT}}
|
||||
// remove import patterns and layering
|
||||
"no-nodejs-globals": [
|
||||
true,
|
||||
{
|
||||
"target": "**/{vs,sql}/base/common/{path,process,platform}.ts",
|
||||
"allowed": [
|
||||
"process" // -> defines safe access to process
|
||||
]
|
||||
},
|
||||
{
|
||||
"target": "**/{vs,sql}/**/test/{common,browser}/**",
|
||||
"allowed": [
|
||||
"process",
|
||||
"Buffer",
|
||||
"__filename",
|
||||
"__dirname"
|
||||
]
|
||||
},
|
||||
{
|
||||
"target": "**/{vs,sql}/workbench/api/common/extHostExtensionService.ts",
|
||||
"allowed": [
|
||||
"global" // -> safe access to 'global'
|
||||
]
|
||||
},
|
||||
{
|
||||
"target": "**/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts",
|
||||
"allowed": [
|
||||
"process"
|
||||
]
|
||||
},
|
||||
{
|
||||
"target": "**/{vs,sql}/**/{common,browser}/**",
|
||||
"allowed": [ /* none */]
|
||||
}
|
||||
],
|
||||
"no-dom-globals": [
|
||||
true,
|
||||
{
|
||||
"target": "**/{vs,sql}/**/test/{common,node,electron-main}/**",
|
||||
"allowed": [
|
||||
"document",
|
||||
"HTMLElement"
|
||||
]
|
||||
},
|
||||
{
|
||||
"target": "**/vs/workbench/contrib/terminal/common/{terminal.ts,terminalService.ts}",
|
||||
"allowed": [
|
||||
"HTMLElement"
|
||||
]
|
||||
},
|
||||
{
|
||||
"target": "**/{vs,sql}/**/{common,node,electron-main}/**",
|
||||
"allowed": [ /* none */]
|
||||
}
|
||||
],
|
||||
"duplicate-imports": true,
|
||||
"no-new-buffer": true,
|
||||
"translation-remind": true,
|
||||
|
||||
Reference in New Issue
Block a user