vscode/tslint.json

578 lines
15 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": {
2019-01-04 23:27:22 +00:00
"no-arg": true,
"no-construct": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-eval": true,
2019-01-04 23:27:22 +00:00
"no-redundant-jsdoc": true,
"no-sparse-arrays": true,
2017-06-20 15:13:39 +00:00
"no-string-throw": true,
"no-unsafe-finally": true,
2016-01-15 13:45:30 +00:00
"no-unused-expression": true,
2019-01-04 02:02:48 +00:00
"no-var-keyword": true,
2019-01-04 23:45:28 +00:00
"number-literal-format": true,
2016-02-04 15:01:05 +00:00
"curly": true,
"class-name": true,
"label-position": 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 !!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
{
"target": "**/vs/base/common/**",
"restrictions": [
"vs/nls",
"**/vs/base/common/**"
]
},
{
"target": "**/vs/base/test/common/**",
"restrictions": [
"assert",
"vs/nls",
"**/vs/base/common/**",
"**/vs/base/test/common/**"
]
},
{
"target": "**/vs/base/browser/**",
"restrictions": [
"vs/nls",
"vs/css!./**/*",
2017-06-19 09:00:23 +00:00
"**/vs/base/{common,browser}/**"
]
},
{
"target": "**/vs/base/node/**",
"restrictions": [
"vs/nls",
"**/vs/base/{common,browser,node}/**",
"*" // node modules
]
},
{
// 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}/**"
]
},
{
"target": "**/vs/base/parts/*/node/**",
"restrictions": [
"vs/nls",
"**/vs/base/{common,browser,node}/**",
"**/vs/base/parts/*/{common,browser,node}/**",
"*" // node modules
]
},
{
"target": "**/vs/base/parts/*/electron-browser/**",
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"**/vs/base/{common,browser,node,electron-browser}/**",
"**/vs/base/parts/*/{common,browser,node,electron-browser}/**",
"*" // node modules
]
},
{
"target": "**/vs/base/parts/*/electron-main/**",
"restrictions": [
"vs/nls",
"**/vs/base/{common,browser,node,electron-main}/**",
"**/vs/base/parts/*/{common,browser,node,electron-main}/**",
"*" // node modules
]
},
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/*/node/**",
"restrictions": [
"vs/nls",
"**/vs/base/{common,browser,node}/**",
"**/vs/base/parts/*/{common,browser,node}/**",
"**/vs/platform/*/{common,browser,node}/**",
"*" // node modules
]
},
{
"target": "**/vs/platform/*/electron-browser/**",
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"**/vs/base/{common,browser,node}/**",
"**/vs/base/parts/*/{common,browser,node,electron-browser}/**",
"**/vs/platform/*/{common,browser,node,electron-browser}/**",
"*" // node modules
]
},
{
"target": "**/vs/platform/*/electron-main/**",
"restrictions": [
"vs/nls",
"**/vs/base/{common,browser,node}/**",
"**/vs/base/parts/*/{common,browser,node,electron-browser}/**",
"**/vs/platform/*/{common,browser,node,electron-main}/**",
"*" // node modules
]
},
{
"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}/**",
"**/vs/platform/{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/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/api/common/**",
"restrictions": [
2019-03-19 16:36:49 +00:00
"vs/nls",
"**/vs/base/common/**",
"**/vs/platform/*/common/**",
"**/vs/editor/common/**",
"**/vs/editor/contrib/*/common/**",
"**/vs/workbench/api/common/**",
"**/vs/workbench/common/**",
"**/vs/workbench/services/*/common/**",
"**/vs/workbench/contrib/*/common/**"
]
},
2017-06-20 05:20:15 +00:00
{
"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/*/{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/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}/**",
"vs/workbench/contrib/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/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/base/**/{common,node}/**",
"**/vs/platform/**/{common,node}/**",
"**/vs/editor/{common,node}/**",
"**/vs/workbench/{common,node}/**",
"**/vs/workbench/api/{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
]
},
{
"target": "**/vs/workbench/contrib/files/common/**",
"restrictions": [
"vs/nls",
"**/vs/base/common/**",
"**/vs/base/parts/*/common/**",
"**/vs/platform/*/common/**",
"**/vs/editor/common/**",
"**/vs/editor/contrib/*/common/**",
"**/vs/workbench/common/**",
"**/vs/workbench/services/*/common/**",
"**/vs/workbench/contrib/files/common/**",
"assert"
]
},
{
"target": "**/vs/workbench/contrib/files/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
"**/vs/workbench/{common,browser}/**",
"**/vs/workbench/services/*/{common,browser}/**",
"**/vs/workbench/contrib/files/{common,browser}/**",
"assert"
]
},
{
"target": "**/vs/workbench/contrib/terminal/browser/**",
"restrictions": [
"vscode-xterm",
"**/vs/**"
]
},
2018-01-19 11:02:44 +00:00
{
"target": "**/vs/code/node/**",
2018-01-19 11:02:44 +00:00
"restrictions": [
"vs/nls",
"**/vs/base/**/{common,browser,node}/**",
"**/vs/base/parts/**/{common,browser,node}/**",
"**/vs/platform/**/{common,browser,node}/**",
"**/vs/code/**/{common,browser,node}/**",
2018-01-19 11:02:44 +00:00
"*" // 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/base/**/{common,browser,node,electron-browser}/**",
"**/vs/base/parts/**/{common,browser,node,electron-browser}/**",
"**/vs/platform/**/{common,browser,node,electron-browser}/**",
"**/vs/code/**/{common,browser,node,electron-browser}/**",
2018-01-19 11:02:44 +00:00
"*" // node modules
]
},
2017-06-20 06:52:09 +00:00
{
"target": "**/vs/code/electron-main/**",
2017-06-20 06:52:09 +00:00
"restrictions": [
"vs/nls",
"**/vs/base/**/{common,browser,node}/**",
"**/vs/base/parts/**/{common,browser,node,electron-main}/**",
"**/vs/platform/**/{common,browser,node,electron-main}/**",
"**/vs/code/**/{common,browser,node,electron-main}/**",
"**/vs/code/code.main",
2017-06-20 06:52:09 +00:00
"*" // 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,
2018-10-25 17:04:46 +00:00
"no-new-buffer": true,
"translation-remind": true,
"no-standalone-editor": true
2017-11-07 10:53:59 +00:00
},
"defaultSeverity": "warning"
}