debt - disallow cross-part dependencies for files part
This commit is contained in:
parent
ed856d85f5
commit
a455381dd1
2 changed files with 49 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as assert from 'assert';
|
import * as assert from 'assert';
|
||||||
import { URI } from 'vs/base/common/uri';
|
import { URI } from 'vs/base/common/uri';
|
||||||
import { join } from 'vs/base/common/paths';
|
import { join } from 'vs/base/common/paths';
|
||||||
|
|
48
tslint.json
48
tslint.json
|
@ -457,6 +457,54 @@
|
||||||
"*" // node modules
|
"*" // node modules
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"target": "**/vs/workbench/parts/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/parts/files/common/**",
|
||||||
|
"assert"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target": "**/vs/workbench/parts/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/parts/files/{common,browser}/**",
|
||||||
|
"assert"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target": "**/vs/workbench/parts/files/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
|
||||||
|
"**/vs/workbench/{common,browser,node,electron-browser,api}/**",
|
||||||
|
"**/vs/workbench/services/*/{common,browser,node,electron-browser}/**",
|
||||||
|
"**/vs/workbench/parts/files/{common,browser,node,electron-browser}/**",
|
||||||
|
"*" // node modules
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"target": "**/vs/code/node/**",
|
"target": "**/vs/code/node/**",
|
||||||
"restrictions": [
|
"restrictions": [
|
||||||
|
|
Loading…
Reference in a new issue