diff --git a/tslint.json b/tslint.json index 5833fd61ba..6ec4d12ece 100644 --- a/tslint.json +++ b/tslint.json @@ -35,6 +35,29 @@ "messageIndex": 1 } ], + "layering": [ + true, + { + "common": [ + "browser" // {{SQL CARBON EDIT}} @anthonydresser not ideal, but for our purposes its fine for now + ], + "node": [ + "common" + ], + "browser": [ + "common" + ], + "electron-main": [ + "common", + "node" + ], + "electron-browser": [ + "common", + "browser", + "node" + ] + } + ], // {{SQL CARBON EDIT}} @anthonydresser for the most part these rules should be the same as vscode with some changes // anything that references **/vs/** should references **/{vs,sql}/** instead // @angular/* and rxjs/* are added to browser and electron-browser restrictions since * doesn't cover them