From 0287c3cb40e4e8304f4c791cb2ef7a14a4630f4b Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 16 Jun 2017 12:29:28 +0200 Subject: [PATCH] Better TS Lint import enforcement rules for vs/base and vs/editor/contrib --- tslint.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tslint.json b/tslint.json index 84c20b3d478..5f48c5e2439 100644 --- a/tslint.json +++ b/tslint.json @@ -46,6 +46,23 @@ ], "import-patterns": [ true, + { + "target": "**/vs/base/common/**", + "restrictions": [ + "vs/nls", + "**/vs/base/common/**" + ] + }, + { + "target": "**/vs/editor/contrib/**", + "restrictions": [ + "**/vs/css!./**/*", + "**/vs/nls", + "**/vs/{base,platform}/**/{common,browser}/**", + "**/vs/editor/**", + "assert" + ] + }, { "target": "**/{node,electron-browser,electron-main,extensions}/**", "restrictions": "**/*"