@@ -317,7 +317,7 @@ export default ts.config(
317317 {
318318 name : 'extension:node' ,
319319 files : [ 'src/**/*' ] ,
320- ignores : [ 'src/webviews/apps/**/*' , 'src/env/browser/**/*' ] ,
320+ ignores : [ '**/webview/**/*' , 'src/test/**/*' , ' src/webviews/apps/**/*', 'src/env/browser/**/*' ] ,
321321 languageOptions : {
322322 globals : {
323323 ...globals . node ,
@@ -358,7 +358,7 @@ export default ts.config(
358358 {
359359 name : 'extension:browser' ,
360360 files : [ 'src/**/*' ] ,
361- ignores : [ 'src/webviews/apps/**/*' , 'src/env/node/**/*' ] ,
361+ ignores : [ '**/webview/**/*' , 'src/test/**/*' , ' src/webviews/apps/**/*', 'src/env/node/**/*' ] ,
362362 languageOptions : {
363363 globals : {
364364 ...globals . worker ,
@@ -381,19 +381,19 @@ export default ts.config(
381381 // Keep in sync with `src/webviews/apps/tsconfig.json`
382382 files : [
383383 'src/webviews/apps/**/*' ,
384- 'src/@types/**/*' ,
385- 'src/env/browser/**/*' ,
386- 'src/plus/gk/account/promos.ts' ,
387- 'src/plus/gk/account/subscription.ts' ,
388384 'src/webviews/**/protocol.ts' ,
385+ 'src/**/models/**/*.ts' ,
386+ 'src/**/utils/**/*.ts' ,
387+ 'src/@types/**/*' ,
389388 'src/config.ts' ,
390389 'src/constants.ts' ,
391390 'src/constants.*.ts' ,
391+ 'src/env/browser/**/*' ,
392392 'src/features.ts' ,
393- 'src/subscription.ts' ,
394- 'src/system/*.ts' ,
395- 'src/system/decorators/log.ts' ,
393+ 'src/system/**/*.ts' ,
394+ '**/webview/**/*' ,
396395 ] ,
396+ ignores : [ '**/-webview/**/*' ] ,
397397 languageOptions : {
398398 globals : {
399399 ...globals . browser ,
@@ -414,13 +414,13 @@ export default ts.config(
414414 {
415415 patterns : [
416416 {
417- group : [ 'react-dom ' ] ,
418- importNames : [ ' Container' ] ,
419- message : 'Use our Container instead' ,
417+ group : [ 'Container ' ] ,
418+ message : "Can't use ` Container` in webviews" ,
419+ allowTypeImports : true ,
420420 } ,
421421 {
422422 group : [ 'vscode' ] ,
423- message : "Can't use vscode in webviews" ,
423+ message : "Can't use ` vscode` in webviews" ,
424424 allowTypeImports : true ,
425425 } ,
426426 ] ,
0 commit comments