Skip to content

Commit 3d2eec8

Browse files
committed
Enforce more dependency rules via TS Lint
1 parent 494b7b7 commit 3d2eec8

4 files changed

Lines changed: 76 additions & 2 deletions

File tree

src/vs/editor/editor.main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'use strict';
77

8-
import 'vs/editor/browser/editor.all';
8+
import 'vs/editor/editor.all';
99
import 'vs/editor/contrib/quickOpen/browser/quickOutline';
1010
import 'vs/editor/contrib/quickOpen/browser/gotoLine';
1111
import 'vs/editor/contrib/quickOpen/browser/quickCommand';

src/vs/workbench/electron-browser/workbench.main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'vs/base/common/strings';
1010
import 'vs/base/common/errors';
1111

1212
// Editor
13-
import 'vs/editor/browser/editor.all';
13+
import 'vs/editor/editor.all';
1414

1515
// Menus/Actions
1616
import 'vs/platform/actions/electron-browser/menusExtensionPoint';

tslint.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,80 @@
8989
"**/vs/base/test/browser/**"
9090
]
9191
},
92+
{
93+
"target": "**/vs/base/parts/quickopen/common/**",
94+
"restrictions": [
95+
"vs/nls",
96+
"**/vs/base/common/**"
97+
]
98+
},
99+
{
100+
"target": "**/vs/base/parts/quickopen/browser/**",
101+
"restrictions": [
102+
"vs/nls",
103+
"vs/css!./**/*",
104+
"**/vs/base/common/**",
105+
"**/vs/base/browser/**",
106+
"**/vs/base/parts/tree/browser/**",
107+
"**/vs/base/parts/quickopen/common/**",
108+
"**/vs/base/parts/quickopen/browser/**"
109+
]
110+
},
111+
{
112+
"target": "**/vs/base/parts/tree/browser/**",
113+
"restrictions": [
114+
"vs/nls",
115+
"vs/css!./**/*",
116+
"**/vs/base/common/**",
117+
"**/vs/base/browser/**",
118+
"**/vs/base/parts/tree/browser/**"
119+
]
120+
},
121+
// {
122+
// "target": "**/vs/platform/test/common/**",
123+
// "restrictions": [
124+
// "assert",
125+
// "**/vs/platform/platform",
126+
// "**/vs/base/common/**"
127+
// ]
128+
// },
129+
// {
130+
// "target": "**/vs/platform/*/common/**",
131+
// "restrictions": [
132+
// "vs/nls",
133+
// "**/vs/base/common/**",
134+
// "**/vs/platform/*/common/**",
135+
// "**/vs/platform/platform",
136+
// "**/vs/base/parts/ipc/common/**",
137+
// "**/vs/base/parts/quickopen/common/**"
138+
// ]
139+
// },
140+
{
141+
"target": "**/vs/editor/common/**",
142+
"restrictions": [
143+
"vs/nls",
144+
"**/vs/base/common/**",
145+
"**/vs/base/worker/**",
146+
"**/vs/platform/*/common/**",
147+
"**/vs/platform/platform",
148+
"**/vs/editor/common/**"
149+
]
150+
},
151+
{
152+
"target": "**/vs/editor/browser/**",
153+
"restrictions": [
154+
"vs/nls",
155+
"vs/css!./**/*",
156+
"**/vs/base/common/**",
157+
"**/vs/base/browser/**",
158+
"**/vs/platform/*/common/**",
159+
"**/vs/platform/*/browser/**",
160+
"**/vs/platform/platform",
161+
"**/vs/editor/common/**",
162+
"**/vs/editor/browser/**",
163+
"vs/editor/contrib/diffNavigator/common/diffNavigator" // TODO@Alex
164+
]
165+
},
92166
{
93167
"target": "**/vs/editor/contrib/**",
94168
"restrictions": [

0 commit comments

Comments
 (0)