Skip to content

Commit

Permalink
Add rules for some missing folders (microsoft#140857)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Jan 17, 2022
1 parent 2640089 commit bc1e738
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,39 @@
"**/vs/workbench/contrib/*/common/**"
]
},
{
"target": "**/vs/workbench/api/browser/**",
"restrictions": [
"vscode",
"vs/nls",
"**/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/api/{common,browser}/**",
"**/vs/workbench/{common,browser}/**",
"**/vs/workbench/services/*/{common,browser}/**",
"**/vs/workbench/contrib/*/{common,browser}/**"
]
},
{
"target": "**/vs/workbench/api/node/**",
"restrictions": [
"vscode",
"vs/nls",
"**/vs/base/{common,node}/**",
"**/vs/base/parts/*/{common,node}/**",
"**/vs/platform/*/{common,node}/**",
"**/vs/editor/{common,node}/**",
"**/vs/editor/contrib/*/{common,node}/**",
"**/vs/workbench/api/{common,node}/**",
"**/vs/workbench/{common,node}/**",
"**/vs/workbench/services/*/{common,node}/**",
"**/vs/workbench/contrib/*/{common,node}/**",
"*" // node modules
]
},
{
"target": "**/vs/workbench/api/worker/**",
"restrictions": [
Expand Down Expand Up @@ -847,6 +880,20 @@
"*" // node modules
]
},
{
"target": "**/vs/code/electron-sandbox/**",
"restrictions": [
"vs/nls",
"vs/css!./**/*",
"**/vs/base/**/{common,browser,node,electron-sandbox,electron-browser}/**",
"**/vs/base/parts/**/{common,browser,node,electron-sandbox,electron-browser}/**",
"**/vs/platform/**/{common,browser,node,electron-sandbox,electron-browser}/**",
"**/vs/code/**/{common,browser,node,electron-sandbox,electron-browser}/**",
"@vscode/*",
"@parcel/*",
"*" // node modules
]
},
{
"target": "**/vs/code/electron-main/**",
"restrictions": [
Expand Down Expand Up @@ -934,6 +981,10 @@
"**/vs/workbench/workbench.sandbox.main"
]
},
{
"target": "**/src/vscode-dts/**",
"restrictions": []
},
{
"target": "**/extensions/**",
"restrictions": "**/*"
Expand Down

0 comments on commit bc1e738

Please sign in to comment.