mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-27 05:05:10 +00:00
Better TS Lint import enforcement rules for vs/base and vs/editor/contrib
This commit is contained in:
17
tslint.json
17
tslint.json
@@ -46,6 +46,23 @@
|
||||
],
|
||||
"import-patterns": [
|
||||
true,
|
||||
{
|
||||
"target": "**/vs/base/common/**",
|
||||
"restrictions": [
|
||||
"vs/nls",
|
||||
"**/vs/base/common/**"
|
||||
]
|
||||
},
|
||||
{
|
||||
"target": "**/vs/editor/contrib/**",
|
||||
"restrictions": [
|
||||
"**/vs/css!./**/*",
|
||||
"**/vs/nls",
|
||||
"**/vs/{base,platform}/**/{common,browser}/**",
|
||||
"**/vs/editor/**",
|
||||
"assert"
|
||||
]
|
||||
},
|
||||
{
|
||||
"target": "**/{node,electron-browser,electron-main,extensions}/**",
|
||||
"restrictions": "**/*"
|
||||
|
||||
Reference in New Issue
Block a user