vscode/tslint.json

466 lines
11 KiB
JSON
Raw Normal View History

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,
"no-duplicate-variable": true,
2016-02-04 15:01:05 +00:00
"curly": true,
"class-name": true,
"semicolon": [
true,
"always"
],
"triple-equals": true,
"no-unexternalized-strings": [
true,
{
"signatures": [
"localize",
"nls.localize"
],
"keyIndex": 0,
"messageIndex": 1
}
],
"layering": [
2016-11-11 16:42:29 +00:00
true,
{
"common": [],
"node": [
"common"
],
"browser": [
"common"
],
2016-11-10 14:33:14 +00:00
"electron-main": [
"common",
2016-11-10 14:33:14 +00:00
"node"
],
"electron-browser": [
"common",
"browser",
"node"
]
}
],
"import-patterns": [
2016-11-11 16:32:51 +00:00
true,
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!! Do not relax these rules !!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
{
// vs/base/common cannot depend on anything else
"target": "**/vs/base/common/**",
"restrictions": [
"vs/nls",
"**/vs/base/common/**"
]
},
{
// 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/**"
]
},
{
// 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}/**"
]
},
{
// 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-19 09:18:40 +00:00
"target": "**/vs/base/parts/*/common/**",
"restrictions": [
"vs/nls",
2017-06-19 09:18:40 +00:00
"**/vs/base/common/**",
"**/vs/base/parts/*/common/**"
]
},
{
2017-06-19 09:18:40 +00:00
"target": "**/vs/base/parts/*/browser/**",
"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-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/**"
]
},
{
"target": "**/vs/platform/*/test/common/**",
"restrictions": [
"assert",
2017-06-26 13:16:22 +00:00
"sinon",
"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
]
},
{
"target": "**/vs/platform/*/test/browser/**",
"restrictions": [
"assert",
2017-06-26 13:16:22 +00:00
"sinon",
"vs/nls",
"**/vs/base/{common,browser}/**",
"**/vs/platform/*/{common,browser}/**",
"**/vs/platform/*/test/{common,browser}/**"
]
},
{
"target": "**/vs/editor/common/**",
"restrictions": [
"vs/nls",
"**/vs/base/common/**",
"**/vs/base/worker/**",
"**/vs/platform/*/common/**",
"**/vs/editor/common/**"
]
},
{
"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/**"
]
},
{
"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}/**",
"**/vs/editor/{common,browser}/**"
]
},
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}/**",
"**/vs/platform/*/test/{common,browser}/**",
2017-06-19 09:59:16 +00:00
"**/vs/editor/{common,browser}/**",
"**/vs/editor/test/{common,browser}/**"
2017-06-19 09:59:16 +00:00
]
},
{
"target": "**/vs/editor/standalone/common/**",
"restrictions": [
"vs/nls",
"**/vs/base/common/**",
"**/vs/platform/*/common/**",
"**/vs/editor/common/**",
"**/vs/editor/standalone/common/**"
]
},
{
"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}/**",
"**/vs/base/parts/*/{common,browser}/**",
"**/vs/platform/*/{common,browser}/**",
"**/vs/editor/{common,browser}/**",
2017-06-20 10:12:17 +00:00
"**/vs/editor/contrib/**",
"**/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/**"
]
},
{
"target": "**/vs/editor/contrib/**",
"restrictions": [
"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-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/**", // editor/contrib is equivalent to /browser/ by convention
2017-06-19 10:24:31 +00:00
"**/vs/workbench/{common,browser}/**",
"**/vs/workbench/services/*/{common,browser}/**",
"assert"
]
},
2017-06-20 05:20:15 +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/**", // editor/contrib is equivalent to /browser/ by convention
2017-06-20 05:20:15 +00:00
"**/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/**/common/**",
2017-06-20 05:20:15 +00:00
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"**/vs/base/**/common/**",
"**/vs/platform/**/common/**",
"**/vs/editor/common/**",
"**/vs/workbench/common/**",
"**/vs/workbench/services/**/common/**"
]
},
{
"target": "**/vs/workbench/services/**/browser/**",
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"**/vs/base/**/{common,browser}/**",
"**/vs/platform/**/{common,browser}/**",
"**/vs/editor/{common,browser}/**",
"**/vs/workbench/{common,browser}/**",
"**/vs/workbench/services/**/{common,browser}/**"
]
},
{
"target": "**/vs/workbench/services/**/node/**",
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"**/vs/base/**/{common,node}/**",
"**/vs/platform/**/{common,node}/**",
"**/vs/editor/{common,node}/**",
"**/vs/workbench/{common,node}/**",
"**/vs/workbench/services/**/{common,node}/**",
"*" // node modules
]
},
{
"target": "**/vs/workbench/services/**/electron-browser/**",
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"**/vs/base/**/{common,browser,node,electron-browser}/**",
"**/vs/platform/**/{common,browser,node,electron-browser}/**",
"**/vs/editor/**",
"**/vs/workbench/{common,browser,node,electron-browser,api}/**",
"**/vs/workbench/services/**/{common,browser,node,electron-browser}/**",
2017-06-20 05:20:15 +00:00
"*" // node modules
]
},
2018-01-19 11:02:44 +00:00
{
"target": "**/vs/code/electron-browser/**",
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"vs/nls",
"**/vs/base/**",
"**/vs/platform/**",
"**/vs/code/**",
"*" // node modules
]
},
2018-04-10 00:35:17 +00:00
{
"target": "**/vs/code/electron-browser/**",
2018-01-19 11:02:44 +00:00
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"vs/nls",
"**/vs/base/**",
"**/vs/platform/**",
"**/vs/code/**",
"*" // 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-11 16:40:46 +00:00
"target": "**/{node,electron-browser,electron-main,extensions}/**",
"restrictions": "**/*"
},
2017-06-20 12:00:20 +00:00
{
"target": "**/test/smoke/**",
"restrictions": [
"**/test/smoke/**",
"*"
]
},
2018-04-04 14:04:36 +00:00
{
"target": "**/test/smoke2/**",
"restrictions": [
"**/test/smoke2/**",
"*"
]
},
2016-11-11 16:32:51 +00:00
{
2016-11-11 16:40:46 +00:00
"target": "{**/**.test.ts,**/test/**}",
"restrictions": "{**/vs/**,assert,sinon,crypto}"
2016-11-11 16:32:51 +00:00
},
{
"target": "**/{common,browser,workbench}/**",
2016-11-11 16:40:46 +00:00
"restrictions": "**/vs/**"
}
2016-11-11 16:01:55 +00:00
],
"duplicate-imports": true,
"translation-remind": true,
"no-standalone-editor": true
2017-11-07 10:53:59 +00:00
},
"defaultSeverity": "warning"
}