2016-01-14 16:53:55 +00:00
|
|
|
{
|
2017-05-17 14:13:23 +00:00
|
|
|
"rulesDirectory": [
|
|
|
|
"build/lib/tslint"
|
|
|
|
],
|
2016-01-14 16:53:55 +00:00
|
|
|
"rules": {
|
2017-06-20 15:13:39 +00:00
|
|
|
"no-string-throw": true,
|
2016-01-15 13:45:30 +00:00
|
|
|
"no-unused-expression": true,
|
2016-01-21 09:22:52 +00:00
|
|
|
"no-duplicate-variable": true,
|
2016-02-04 15:01:05 +00:00
|
|
|
"no-unused-variable": true,
|
|
|
|
"curly": true,
|
|
|
|
"class-name": true,
|
2016-11-10 11:40:19 +00:00
|
|
|
"semicolon": [
|
|
|
|
"always"
|
|
|
|
],
|
2016-02-17 22:04:32 +00:00
|
|
|
"triple-equals": true,
|
|
|
|
"no-unexternalized-strings": [
|
|
|
|
true,
|
|
|
|
{
|
2016-11-10 11:40:19 +00:00
|
|
|
"signatures": [
|
|
|
|
"localize",
|
|
|
|
"nls.localize"
|
|
|
|
],
|
2016-02-17 22:04:32 +00:00
|
|
|
"keyIndex": 0,
|
|
|
|
"messageIndex": 1
|
|
|
|
}
|
2016-11-10 11:40:19 +00:00
|
|
|
],
|
|
|
|
"layering": [
|
2016-11-11 16:42:29 +00:00
|
|
|
true,
|
2016-11-10 11:40:19 +00:00
|
|
|
{
|
|
|
|
"common": [],
|
|
|
|
"node": [
|
|
|
|
"common"
|
|
|
|
],
|
|
|
|
"browser": [
|
|
|
|
"common"
|
|
|
|
],
|
2016-11-10 14:33:14 +00:00
|
|
|
"electron-main": [
|
2016-11-10 11:40:19 +00:00
|
|
|
"common",
|
2016-11-10 14:33:14 +00:00
|
|
|
"node"
|
2016-11-10 11:40:19 +00:00
|
|
|
],
|
|
|
|
"electron-browser": [
|
|
|
|
"common",
|
|
|
|
"browser",
|
|
|
|
"node"
|
|
|
|
]
|
|
|
|
}
|
2016-11-10 14:22:37 +00:00
|
|
|
],
|
|
|
|
"import-patterns": [
|
2016-11-11 16:32:51 +00:00
|
|
|
true,
|
2017-06-16 10:53:55 +00:00
|
|
|
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
// !!! Do not relax these rules !!!
|
|
|
|
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
2017-06-16 10:29:28 +00:00
|
|
|
{
|
2017-06-16 10:53:55 +00:00
|
|
|
// vs/base/common cannot depend on anything else
|
2017-06-16 10:29:28 +00:00
|
|
|
"target": "**/vs/base/common/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/common/**"
|
|
|
|
]
|
|
|
|
},
|
2017-06-16 11:05:38 +00:00
|
|
|
{
|
|
|
|
// vs/base/test/common contains tests for vs/base/common
|
|
|
|
"target": "**/vs/base/test/common/**",
|
|
|
|
"restrictions": [
|
|
|
|
"assert",
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/common/**",
|
|
|
|
"**/vs/base/test/common/**"
|
|
|
|
]
|
|
|
|
},
|
2017-06-16 10:53:55 +00:00
|
|
|
{
|
|
|
|
// vs/base/browser can only depend on vs/base/common
|
|
|
|
"target": "**/vs/base/browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
2017-06-19 09:00:23 +00:00
|
|
|
"**/vs/base/{common,browser}/**"
|
2017-06-16 10:53:55 +00:00
|
|
|
]
|
|
|
|
},
|
2017-06-16 11:05:38 +00:00
|
|
|
{
|
|
|
|
// vs/base/test/browser contains tests for vs/base/browser
|
|
|
|
"target": "**/vs/base/test/browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"assert",
|
|
|
|
"vs/nls",
|
2017-06-19 09:00:23 +00:00
|
|
|
"**/vs/base/{common,browser}/**",
|
|
|
|
"**/vs/base/test/{common,browser}/**"
|
2017-06-16 11:05:38 +00:00
|
|
|
]
|
|
|
|
},
|
2017-06-16 16:04:37 +00:00
|
|
|
{
|
2017-06-19 09:18:40 +00:00
|
|
|
"target": "**/vs/base/parts/*/common/**",
|
2017-06-16 16:04:37 +00:00
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
2017-06-19 09:18:40 +00:00
|
|
|
"**/vs/base/common/**",
|
|
|
|
"**/vs/base/parts/*/common/**"
|
2017-06-16 16:04:37 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2017-06-19 09:18:40 +00:00
|
|
|
"target": "**/vs/base/parts/*/browser/**",
|
2017-06-16 16:04:37 +00:00
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
2017-06-19 09:00:23 +00:00
|
|
|
"**/vs/base/{common,browser}/**",
|
2017-06-19 09:18:40 +00:00
|
|
|
"**/vs/base/parts/*/{common,browser}/**"
|
2017-06-16 16:04:37 +00:00
|
|
|
]
|
|
|
|
},
|
2017-06-19 08:51:30 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/platform/*/common/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/common/**",
|
2017-06-19 09:18:40 +00:00
|
|
|
"**/vs/base/parts/*/common/**",
|
|
|
|
"**/vs/platform/*/common/**"
|
|
|
|
]
|
|
|
|
},
|
2017-06-20 07:53:37 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/platform/*/test/common/**",
|
|
|
|
"restrictions": [
|
|
|
|
"assert",
|
2017-06-26 13:16:22 +00:00
|
|
|
"sinon",
|
2017-06-20 07:53:37 +00:00
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/common/**",
|
|
|
|
"**/vs/platform/*/common/**",
|
|
|
|
"**/vs/platform/*/test/common/**"
|
|
|
|
]
|
|
|
|
},
|
2017-06-19 09:18:40 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/platform/*/browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
|
|
|
"**/vs/base/{common,browser}/**",
|
|
|
|
"**/vs/base/parts/*/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/{common,browser}/**"
|
2017-06-19 08:51:30 +00:00
|
|
|
]
|
|
|
|
},
|
2017-06-20 07:53:37 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/platform/*/test/browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"assert",
|
2017-06-26 13:16:22 +00:00
|
|
|
"sinon",
|
2017-06-20 07:53:37 +00:00
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/test/{common,browser}/**"
|
|
|
|
]
|
|
|
|
},
|
2017-06-16 16:04:37 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/editor/common/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/common/**",
|
|
|
|
"**/vs/base/worker/**",
|
|
|
|
"**/vs/platform/*/common/**",
|
|
|
|
"**/vs/editor/common/**"
|
|
|
|
]
|
|
|
|
},
|
2017-06-19 08:39:39 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/editor/test/common/**",
|
|
|
|
"restrictions": [
|
|
|
|
"assert",
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/common/**",
|
|
|
|
"**/vs/platform/*/common/**",
|
|
|
|
"**/vs/platform/*/test/common/**",
|
|
|
|
"**/vs/editor/common/**",
|
|
|
|
"**/vs/editor/test/common/**"
|
|
|
|
]
|
|
|
|
},
|
2017-06-16 16:04:37 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/editor/browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
2017-06-19 09:00:23 +00:00
|
|
|
"**/vs/base/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/{common,browser}/**",
|
2017-06-19 10:03:14 +00:00
|
|
|
"**/vs/editor/{common,browser}/**"
|
2017-06-16 16:04:37 +00:00
|
|
|
]
|
|
|
|
},
|
2017-06-19 09:59:16 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/editor/test/browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"assert",
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/{common,browser}/**",
|
2017-06-19 10:10:34 +00:00
|
|
|
"**/vs/platform/*/test/{common,browser}/**",
|
2017-06-19 09:59:16 +00:00
|
|
|
"**/vs/editor/{common,browser}/**",
|
2017-06-19 10:10:34 +00:00
|
|
|
"**/vs/editor/test/{common,browser}/**"
|
2017-06-19 09:59:16 +00:00
|
|
|
]
|
|
|
|
},
|
2017-06-19 14:44:25 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/editor/standalone/common/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/common/**",
|
|
|
|
"**/vs/platform/*/common/**",
|
2017-06-19 14:52:46 +00:00
|
|
|
"**/vs/editor/common/**",
|
|
|
|
"**/vs/editor/standalone/common/**"
|
2017-06-19 14:44:25 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "**/vs/editor/standalone/test/common/**",
|
|
|
|
"restrictions": [
|
|
|
|
"assert",
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/common/**",
|
|
|
|
"**/vs/platform/*/common/**",
|
|
|
|
"**/vs/platform/*/test/common/**",
|
|
|
|
"**/vs/editor/common/**",
|
|
|
|
"**/vs/editor/test/common/**"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "**/vs/editor/standalone/browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
|
|
|
"**/vs/base/{common,browser}/**",
|
2017-06-20 06:45:32 +00:00
|
|
|
"**/vs/base/parts/*/{common,browser}/**",
|
2017-06-19 14:44:25 +00:00
|
|
|
"**/vs/platform/*/{common,browser}/**",
|
|
|
|
"**/vs/editor/{common,browser}/**",
|
2017-06-20 10:12:17 +00:00
|
|
|
"**/vs/editor/contrib/**",
|
2017-06-19 14:44:25 +00:00
|
|
|
"**/vs/editor/standalone/{common,browser}/**"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "**/vs/editor/standalone/test/browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"assert",
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/test/{common,browser}/**",
|
|
|
|
"**/vs/editor/{common,browser}/**",
|
|
|
|
"**/vs/editor/standalone/{common,browser}/**",
|
|
|
|
"**/vs/editor/test/{common,browser}/**"
|
|
|
|
]
|
|
|
|
},
|
2017-06-19 09:59:16 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/editor/contrib/*/test/**",
|
|
|
|
"restrictions": [
|
|
|
|
"assert",
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/{common,browser}/**",
|
|
|
|
"**/vs/base/test/{common,browser}/**",
|
|
|
|
"**/vs/base/parts/*/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/test/{common,browser}/**",
|
|
|
|
"**/vs/editor/{common,browser}/**",
|
|
|
|
"**/vs/editor/test/{common,browser}/**",
|
|
|
|
"**/vs/editor/contrib/**"
|
|
|
|
]
|
|
|
|
},
|
2017-06-16 10:29:28 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/editor/contrib/**",
|
|
|
|
"restrictions": [
|
2017-06-16 10:53:55 +00:00
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
|
|
|
"**/vs/base/{common,browser}/**",
|
2017-06-19 09:18:40 +00:00
|
|
|
"**/vs/base/parts/*/{common,browser}/**",
|
2017-06-19 09:00:23 +00:00
|
|
|
"**/vs/platform/*/{common,browser}/**",
|
2017-06-19 09:59:16 +00:00
|
|
|
"**/vs/editor/{common,browser}/**",
|
|
|
|
"**/vs/editor/contrib/**"
|
2017-06-16 10:29:28 +00:00
|
|
|
]
|
|
|
|
},
|
2017-06-19 10:24:31 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/workbench/common/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
|
|
|
"**/vs/base/common/**",
|
|
|
|
"**/vs/base/parts/*/common/**",
|
|
|
|
"**/vs/platform/*/common/**",
|
|
|
|
"**/vs/editor/common/**",
|
|
|
|
"**/vs/editor/contrib/*/common/**",
|
|
|
|
"**/vs/workbench/common/**",
|
|
|
|
"**/vs/workbench/services/*/common/**",
|
|
|
|
"assert"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "**/vs/workbench/browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
|
|
|
"**/vs/base/{common,browser}/**",
|
|
|
|
"**/vs/base/parts/*/{common,browser}/**",
|
|
|
|
"**/vs/platform/*/{common,browser}/**",
|
|
|
|
"**/vs/editor/{common,browser}/**",
|
|
|
|
"**/vs/editor/contrib/*/{common,browser}/**",
|
|
|
|
"**/vs/workbench/{common,browser}/**",
|
|
|
|
"**/vs/workbench/services/*/{common,browser}/**",
|
|
|
|
"assert"
|
|
|
|
]
|
|
|
|
},
|
2017-06-20 05:20:15 +00:00
|
|
|
{
|
2017-07-03 14:42:29 +00:00
|
|
|
"target": "**/vs/workbench/workbench.main.ts",
|
2017-06-20 05:20:15 +00:00
|
|
|
"restrictions": [
|
|
|
|
"**"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "**/vs/workbench/electron-browser/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
|
|
|
"**/vs/base/{common,browser,node,electron-browser}/**",
|
|
|
|
"**/vs/base/parts/*/{common,browser,node,electron-browser}/**",
|
|
|
|
"**/vs/platform/node/**",
|
|
|
|
"**/vs/platform/*/{common,browser,node,electron-browser}/**",
|
|
|
|
"**/vs/editor/{common,browser,node,electron-browser}/**",
|
|
|
|
"**/vs/editor/contrib/*/{common,browser,node,electron-browser}/**",
|
|
|
|
"**/vs/workbench/{common,browser,node,electron-browser,api}/**",
|
|
|
|
"**/vs/workbench/services/*/{common,browser,node,electron-browser}/**",
|
|
|
|
"*" // node modules
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "**/vs/workbench/node/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
|
|
|
"**/vs/base/{common,node}/**",
|
|
|
|
"**/vs/base/parts/*/{common,node}/**",
|
|
|
|
"**/vs/platform/node/**",
|
|
|
|
"**/vs/platform/*/{common,node}/**",
|
|
|
|
"**/vs/editor/{common,node}/**",
|
|
|
|
"**/vs/editor/contrib/*/{common,node}/**",
|
|
|
|
"**/vs/workbench/{common,node,api}/**",
|
|
|
|
"**/vs/workbench/services/*/{common,node}/**",
|
|
|
|
"*" // node modules
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "**/vs/workbench/services/**/test/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
|
|
|
"**/vs/base/**",
|
|
|
|
"**/vs/platform/**",
|
|
|
|
"**/vs/editor/**",
|
2017-07-19 12:52:37 +00:00
|
|
|
"**/vs/workbench/{common,browser,node,electron-browser}/**",
|
2017-06-20 05:55:00 +00:00
|
|
|
"vs/workbench/parts/files/common/editors/fileEditorInput",
|
2017-06-20 05:20:15 +00:00
|
|
|
"**/vs/workbench/services/**",
|
|
|
|
"**/vs/workbench/test/**",
|
|
|
|
"*" // node modules
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "**/vs/workbench/services/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"vs/css!./**/*",
|
|
|
|
"**/vs/base/**",
|
|
|
|
"**/vs/platform/**",
|
|
|
|
"**/vs/editor/**",
|
2017-07-19 12:52:37 +00:00
|
|
|
"**/vs/workbench/{common,browser,node,electron-browser}/**",
|
2017-06-20 05:20:15 +00:00
|
|
|
"**/vs/workbench/services/**",
|
|
|
|
"*" // node modules
|
|
|
|
]
|
|
|
|
},
|
2017-06-20 06:52:09 +00:00
|
|
|
{
|
|
|
|
"target": "**/vs/code/**",
|
|
|
|
"restrictions": [
|
|
|
|
"vs/nls",
|
|
|
|
"**/vs/base/**",
|
|
|
|
"**/vs/platform/**",
|
|
|
|
"**/vs/code/**",
|
|
|
|
"*" // node modules
|
|
|
|
]
|
|
|
|
},
|
2016-11-10 14:22:37 +00:00
|
|
|
{
|
2016-11-11 16:40:46 +00:00
|
|
|
"target": "**/{node,electron-browser,electron-main,extensions}/**",
|
2016-11-10 14:22:37 +00:00
|
|
|
"restrictions": "**/*"
|
|
|
|
},
|
2017-06-20 12:00:20 +00:00
|
|
|
{
|
|
|
|
"target": "**/test/smoke/**",
|
|
|
|
"restrictions": [
|
|
|
|
"**/test/smoke/**",
|
|
|
|
"*"
|
|
|
|
]
|
|
|
|
},
|
2016-11-11 16:32:51 +00:00
|
|
|
{
|
2016-11-11 16:40:46 +00:00
|
|
|
"target": "{**/**.test.ts,**/test/**}",
|
2016-11-11 16:32:51 +00:00
|
|
|
"restrictions": "{**/vs/**,assert,sinon}"
|
|
|
|
},
|
2016-11-10 14:22:37 +00:00
|
|
|
{
|
|
|
|
"target": "**/{common,browser,workbench}/**",
|
2016-11-11 16:40:46 +00:00
|
|
|
"restrictions": "**/vs/**"
|
2016-11-10 14:22:37 +00:00
|
|
|
}
|
2016-11-11 16:01:55 +00:00
|
|
|
],
|
2017-03-21 10:28:58 +00:00
|
|
|
"duplicate-imports": true,
|
|
|
|
"allow-async": [
|
|
|
|
true,
|
|
|
|
[
|
|
|
|
"node",
|
|
|
|
"electron-main",
|
|
|
|
"electron-browser",
|
2017-05-26 12:57:53 +00:00
|
|
|
"extensions",
|
|
|
|
"smoke"
|
2017-03-21 10:28:58 +00:00
|
|
|
]
|
2017-06-09 12:43:30 +00:00
|
|
|
],
|
|
|
|
"translation-remind": true
|
2016-01-14 16:53:55 +00:00
|
|
|
}
|
2017-03-21 10:28:58 +00:00
|
|
|
}
|