234 lines
No EOL
5.1 KiB
JSON
234 lines
No EOL
5.1 KiB
JSON
{
|
|
"rulesDirectory": [
|
|
"build/lib/tslint"
|
|
],
|
|
"rules": {
|
|
"no-unused-expression": true,
|
|
"no-duplicate-variable": true,
|
|
"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": [
|
|
true,
|
|
{
|
|
"common": [],
|
|
"node": [
|
|
"common"
|
|
],
|
|
"browser": [
|
|
"common"
|
|
],
|
|
"electron-main": [
|
|
"common",
|
|
"node"
|
|
],
|
|
"electron-browser": [
|
|
"common",
|
|
"browser",
|
|
"node"
|
|
]
|
|
}
|
|
],
|
|
"import-patterns": [
|
|
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,browser}/**"
|
|
]
|
|
},
|
|
{
|
|
// vs/base/test/browser contains tests for vs/base/browser
|
|
"target": "**/vs/base/test/browser/**",
|
|
"restrictions": [
|
|
"assert",
|
|
"vs/nls",
|
|
"**/vs/base/{common,browser}/**",
|
|
"**/vs/base/test/{common,browser}/**"
|
|
]
|
|
},
|
|
{
|
|
"target": "**/vs/base/parts/*/common/**",
|
|
"restrictions": [
|
|
"vs/nls",
|
|
"**/vs/base/common/**",
|
|
"**/vs/base/parts/*/common/**"
|
|
]
|
|
},
|
|
{
|
|
"target": "**/vs/base/parts/*/browser/**",
|
|
"restrictions": [
|
|
"vs/nls",
|
|
"vs/css!./**/*",
|
|
"**/vs/base/{common,browser}/**",
|
|
"**/vs/base/parts/*/{common,browser}/**"
|
|
]
|
|
},
|
|
{
|
|
"target": "**/vs/platform/*/common/**",
|
|
"restrictions": [
|
|
"vs/nls",
|
|
"**/vs/base/common/**",
|
|
"**/vs/base/parts/*/common/**",
|
|
"**/vs/platform/*/common/**"
|
|
]
|
|
},
|
|
// {
|
|
// "target": "**/vs/platform/*/test/common/**",
|
|
// "restrictions": [
|
|
// "assert",
|
|
// "vs/nls",
|
|
// "**/vs/base/common/**",
|
|
// "**/vs/platform/*/common/**",
|
|
// "**/vs/platform/*/test/common/**"
|
|
// ]
|
|
// },
|
|
{
|
|
"target": "**/vs/platform/*/browser/**",
|
|
"restrictions": [
|
|
"vs/nls",
|
|
"vs/css!./**/*",
|
|
"**/vs/base/{common,browser}/**",
|
|
"**/vs/base/parts/*/{common,browser}/**",
|
|
"**/vs/platform/*/{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/contrib/wordOperations/**", // TODO@Alex
|
|
"**/vs/editor/contrib/folding/common/**", // TODO@Alex
|
|
"**/vs/editor/test/common/**"
|
|
]
|
|
},
|
|
{
|
|
"target": "**/vs/editor/browser/**",
|
|
"restrictions": [
|
|
"vs/nls",
|
|
"vs/css!./**/*",
|
|
"**/vs/base/{common,browser}/**",
|
|
"**/vs/platform/*/{common,browser}/**",
|
|
"**/vs/editor/{common,browser}/**"
|
|
]
|
|
},
|
|
{
|
|
"target": "**/vs/editor/test/browser/**",
|
|
"restrictions": [
|
|
"assert",
|
|
"vs/nls",
|
|
"**/vs/base/{common,browser}/**",
|
|
"**/vs/platform/*/{common,browser}/**",
|
|
"**/vs/editor/{common,browser}/**",
|
|
"**/vs/editor/test/{common,browser}/**",
|
|
"vs/workbench/test/workbenchTestServices" // TODO@Alex
|
|
]
|
|
},
|
|
{
|
|
"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}/**",
|
|
"**/vs/base/parts/*/{common,browser}/**",
|
|
"**/vs/platform/*/{common,browser}/**",
|
|
"**/vs/editor/{common,browser}/**",
|
|
"**/vs/editor/contrib/**"
|
|
]
|
|
},
|
|
{
|
|
"target": "**/{node,electron-browser,electron-main,extensions}/**",
|
|
"restrictions": "**/*"
|
|
},
|
|
{
|
|
"target": "{**/**.test.ts,**/test/**}",
|
|
"restrictions": "{**/vs/**,assert,sinon}"
|
|
},
|
|
{
|
|
"target": "**/{common,browser,workbench}/**",
|
|
"restrictions": "**/vs/**"
|
|
}
|
|
],
|
|
"duplicate-imports": true,
|
|
"allow-async": [
|
|
true,
|
|
[
|
|
"node",
|
|
"electron-main",
|
|
"electron-browser",
|
|
"extensions",
|
|
"smoke"
|
|
]
|
|
],
|
|
"translation-remind": true
|
|
}
|
|
} |