vscode/tslint.json

130 lines
2.5 KiB
JSON
Raw Normal View History

2016-01-14 17:53:55 +01:00
{
2017-05-17 16:13:23 +02:00
"rulesDirectory": [
"build/lib/tslint"
],
2016-01-14 17:53:55 +01:00
"rules": {
2016-01-15 14:45:30 +01:00
"no-unused-expression": true,
"no-duplicate-variable": true,
2016-02-04 16:01:05 +01:00
"no-unused-variable": true,
"curly": true,
"class-name": true,
"semicolon": [
"always"
],
"triple-equals": true,
"no-unexternalized-strings": [
true,
{
"signatures": [
"localize",
"nls.localize"
],
"keyIndex": 0,
"messageIndex": 1
}
],
"layering": [
2016-11-11 17:42:29 +01:00
true,
{
"common": [],
"node": [
"common"
],
"browser": [
"common"
],
2016-11-10 15:33:14 +01:00
"electron-main": [
"common",
2016-11-10 15:33:14 +01:00
"node"
],
"electron-browser": [
"common",
"browser",
"node"
]
}
],
"import-patterns": [
2016-11-11 17:32:51 +01: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!./**/*",
"**/vs/base/common/**",
"**/vs/base/browser/**"
]
},
{
// vs/base/test/browser contains tests for vs/base/browser
"target": "**/vs/base/test/browser/**",
"restrictions": [
"assert",
"vs/nls",
"**/vs/base/common/**",
"**/vs/base/test/common/**",
"**/vs/base/browser/**",
"**/vs/base/test/browser/**"
]
},
{
"target": "**/vs/editor/contrib/**",
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"**/vs/base/{common,browser}/**",
"**/vs/base/parts/{tree,quickopen}/{common,browser}/**",
"**/vs/platform/**/{common,browser}/**",
"**/vs/editor/**",
"assert"
]
},
{
2016-11-11 17:40:46 +01:00
"target": "**/{node,electron-browser,electron-main,extensions}/**",
"restrictions": "**/*"
},
2016-11-11 17:32:51 +01:00
{
2016-11-11 17:40:46 +01:00
"target": "{**/**.test.ts,**/test/**}",
2016-11-11 17:32:51 +01:00
"restrictions": "{**/vs/**,assert,sinon}"
},
{
"target": "**/{common,browser,workbench}/**",
2016-11-11 17:40:46 +01:00
"restrictions": "**/vs/**"
}
2016-11-11 17:01:55 +01:00
],
"duplicate-imports": true,
"allow-async": [
true,
[
"node",
"electron-main",
"electron-browser",
2017-05-26 14:57:53 +02:00
"extensions",
"smoke"
]
2017-06-09 14:43:30 +02:00
],
"translation-remind": true
2016-01-14 17:53:55 +01:00
}
}